Hello,
Thank you everyone who joined in for today's session!
The refersher was quite helpful and much needed :) Thank you Saifi!
Here is the summary:
1. We first setup the go install path to /opt/wogo
As a community we believe that building from source, and standardising the path of packages/binaries is quite important.
One of the issues that standardisation of paths resolve is debugging.
2. Then we updated the go env variables and wrote a small script to do so.
3. After that we looked into the go documentation and packages, a brief
understanding how to use packages, how to read documentation.
Observation from the session, when installing godoc do not use "https://pkg.go.dev/" and
use "@latest" or a specific version of godoc:
$ go install -x https://pkg.go.dev/golang.org/x/tools/cmd/godoc
malformed import path "https:/pkg.go.dev/golang.org/x/tools/cmd/godoc": invalid
char ':'
(base) $ go install -x pkg.go.dev/golang.org/x/tools/cmd/godoc
go: 'go install' requires a version when current directory is not in a module
Try 'go install pkg.go.dev/golang.org/x/tools/cmd/godoc@latest' to
install the latest version
4. We also looked at some proposals and changes that have been made with the
new versions of golang.
@Saifi Please feel to add if I have missed out on any important pointers.
Happy Learning :)
warm regards
Ragini