Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions solutions/go/two-fer/1/two_fer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// This is a "stub" file. It's a little start on your solution.
// It's not a complete solution though; you have to write some code.

// Package twofer should have a package comment that summarizes what it's about.
// https://golang.org/doc/effective_go.html#commentary
package twofer
import "fmt"

// ShareWith should have a comment documenting it.
func ShareWith(name string) string {
if name == ""{
return "One for you, one for me."
}
sentence := fmt.Sprintf("One for %s, one for me.",name)
return sentence
}