summary refs log blame commit diff stats
path: root/go/two-fer/two_fer.go
blob: 3497a4c4c6ea731d6ba42a9df695307104efb56a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                   
// twofer implements ShareWith.
package twofer

import "fmt"

// ShareWith returns "One for `name', one for me.". Default name is
// "you".
func ShareWith(name string) string {
	if len(name) == 0 {
		name = "you"
	}
	return fmt.Sprintf("One for %s, one for me.", name)
}