From 8107f76f3b6dda4662c90c02d40b76292eb13e6f Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Tue, 5 May 2026 18:38:20 +0000 Subject: [PATCH] [Sync Iteration] go/two-fer/1 --- solutions/go/two-fer/1/two_fer.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 solutions/go/two-fer/1/two_fer.go diff --git a/solutions/go/two-fer/1/two_fer.go b/solutions/go/two-fer/1/two_fer.go new file mode 100644 index 0000000..5e0fa96 --- /dev/null +++ b/solutions/go/two-fer/1/two_fer.go @@ -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 +}