Skip to content

Instantly share code, notes, and snippets.

@lamdor
Created June 21, 2019 16:50
Show Gist options
  • Save lamdor/14273ea8cc3e72a2fcfd38d5f4930bc1 to your computer and use it in GitHub Desktop.
Save lamdor/14273ea8cc3e72a2fcfd38d5f4930bc1 to your computer and use it in GitHub Desktop.
// Package twofer gives a two for one phrase back
package twofer
import "fmt"
// ShareWith returns the two for one statement
func ShareWith(name string) string {
if name == "" {
name = "you"
}
return fmt.Sprintf("One for %s, one for me.", name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment