14 lines
252 B
Go
14 lines
252 B
Go
package twofer
|
|
|
|
import "fmt"
|
|
|
|
// ShareWith just returns "One for <who>, one for me."
|
|
// if <who> is empty, use "you"
|
|
func ShareWith(who string) string {
|
|
ret := "One for %s, one for me."
|
|
if who == "" {
|
|
who = "you"
|
|
}
|
|
return fmt.Sprintf(ret, who)
|
|
}
|