in go/greeter/greeter.go [101:108]
func computeGreeting(name string, visits int32) string {
templates := []string{"", "Welcome %s", "Nice to see you again %s", "Third time is the charm %s"}
if visits < int32(len(templates)) {
return fmt.Sprintf(templates[visits], name)
}
return fmt.Sprintf("Nice to see you for the %d-th time %s!", visits, name)
}