Skip to content

feiskyer/go-examples

Repository files navigation

Go examples

Build Status Go Report Card

Various go examples based on gobyexample with extensions.

  • Go basic
  • gRPC
  • Hyper
  • Libvirt client
  • Kubernetes
  • Networking
  • OpenStack client
  • And so on

Golang install

curl -sL https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -C /usr/local -zxf -
export GOPATH='/go'
export PATH=$GOPATH/bin:/usr/local/go/bin/:$PATH

Useful tools

  • godep: go get github.com/tools/godep
  • dep: go get -u github.com/golang/dep/...
  • govendor: go get -u github.com/kardianos/govendor
  • gometalinter: go get -u github.com/alecthomas/gometalinter && gometalinter --install
  • go-pry: An interactive REPL for Go, go get github.com/d4l3k/go-pry.
  • gophernotes: Go in Notebooks.
    • go get golang.org/x/tools/cmd/goimports
    • go get -tags zmq_4_x github.com/gopherds/gophernotes
    • mkdir -p ~/Library/Jupyter/kernels/gophernotes
    • cp -r $GOPATH/src/github.com/gopherds/gophernotes/kernel/* ~/Library/Jupyter/kernels/gophernotes

Releases

No releases published

Packages

No packages published