From ca601c2eea74d1783ae4b039a96c9d0ee1a41e38 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Tue, 31 Dec 2024 16:18:26 -0800 Subject: [PATCH] feat: fill in Go developer journey --- user_stories/go | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/user_stories/go b/user_stories/go index 72fe31c..79cc998 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 cmd +cat >cmd/main.go <&2 "Wanted output 'Hello, world!' but got '${output}'" + exit 1 +} +# Shutdown server +kill %1