learning_go/testing/go-code-samples/testing-guide/fooer.go
2025-12-20 17:00:05 +03:00

16 lines
229 B
Go

package main
import "strconv"
// Fooer If the number is divisible by 3, write "Foo" otherwise, the number
func Fooer(input int) string {
isfoo := (input % 3) == 0
if isfoo {
return "Foo"
}
return strconv.Itoa(input)
}