You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FLEcli/notes/enableGo.md

945 B

Enable GO

Notes to enable/configure GO on my Mac

# GOlang related
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"

Enable cobra

Cobra documentation available at https://github.com/spf13/cobra/blob/master/cobra/README.md

  • go get -u github.com/spf13/cobra/cobra
  • go mod init FLEcli
  • cobra init --pkg-name FLEcli -l MIT
  • cobra add load adds a load command

Reading and processing file