diff --git a/user_stories/go b/user_stories/go index 72fe31c..1a5762d 100755 --- a/user_stories/go +++ b/user_stories/go @@ -3,6 +3,47 @@ # with the Go language enabled. set -o errexit -o pipefail -o nounset -# Create/update the go.mod file +# The user writes some Go code with external imports +# Maybe they just search for "golang hello world" +# and paste the code found at https://yourbasic.org/golang/http-server-example/ +# And then they also add an external dependency on +# https://pkg.go.dev/nmyk.io/cowsay just for fun. +mkdir -p cmd/hello +cat >cmd/hello/main.go <&2 "Wanted output containing 'Hello, world' but got '${output}'" + exit 1 +} +# Shutdown server +kill %1