Skip to content

cellois/go-start-disco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-start-disco

Go first install steps

macOS install fix

  1. gvm install go1.8 -B
  2. gvm use go1.8 --default
  3. export GOROOT_BOOTSTRAP=$GOROOT
  4. gvm install go1.13 (whatever version after 1.8 you want to install, in my case i want to use 1.13)

? May disregard above Alt fix may have been problem specifically with gvm 1.15.6 ... no built in stdlib packages found... but 1.15 and previous versions work...

GG deprecation and incompatibility of minor versions Seemed to "just work" on Windows straight install without worrying about gvm.

go get -u github.com/spf13/cobra/cobra

https://sbstjn.com/blog/create-golang-cli-application-with-cobra-and-goxc/

e.g.

$GOPATH/bin/goxc \
  -bc="darwin,amd64" \
  -pv=0.0.1 \
  -d=build \
  -build-ldflags "-X main.VERSION=0.0.1"

Set up makefile

make build
make install

Should probably build build artefacts using gh-actions rather than in source repo for release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published