in go/showcase/pkg/showcase/part6/greetings_fn.go [54:63]
func computeGreeting(profile UserProfile) string {
count := profile.SeenCount
if count <= int32(len(templates)) {
return fmt.Sprintf(templates[count-1], profile.Name)
}
return fmt.Sprintf("Nice to see you for the %dth time, %s! It has been %d milliseconds since we last say you.",
count, profile.Name, profile.LastSeenDeltaMs)
}