MoinQ:

1. golang

packageでエラーになるので、調べた。

動くといいが。-- ToshinoriMaeno 2016-05-04 06:57:56

1.1. package

https://golang.org/pkg/crypto/

$ go get github.com/golang/crypto

package github.com/golang/crypto
        imports github.com/golang/crypto
        imports github.com/golang/crypto: no buildable Go source files in /home/tmaeno/gocode/src/github.com/golang/crypto


https://www.somethingsimilar.com/2012/05/24/finding-go.crypto-and-go.net/

It’s kind of a pain in the ass to find the go.crypto and go.net packages and there’s wonderful goodies in both of them.

1.2. Packages

https://www.golang-book.com/books/intro/11

Using a terminal in the math folder you just created run go install.

(where os is something like windows and arch is something like amd64)

$ go install がエラーになる。

go install: no install location for directory /home/tmaeno/src/golang-book/chapter11/math outside GOPATH

When you provide no arguments to go install,
 it defaults to attempting to install the package in the current directory.
The error message is telling you that it cannot do that,
 because the current directory isn't part of your $GOPATH.

You can either:

  Define $GOPATH to your $HOME (export GOPATH=$HOME).

  Move your source to within the current $GOPATH 
(mv ~/src/go-statsd-client /User/me/gopath).

1.3. Testing

https://www.golang-book.com/books/intro/12

1.4. go version

https://www.digitalocean.com/community/tutorials/how-to-install-go-1-6-on-ubuntu-14-04