import "io/ioutil" func main() { content, err = iotuil.ReadFile("somefile.txt") // etc.. } => I guess this doesn't really answer your question, but if you want, you can actually call the methods without explicitly stating the packag…
Mac: * 下载go安装包 go语言中文网 ** 通过源码编译安装需要先安装go1.4 wget https://studygolang.com/dl/golang/go1.10.3.src.tar.gz tar xvzf go1.10.3.src.tar.gz -C . cd ./go/src/ ./make.bash Building Go cmd/dist using /Users/Mch/go1.4.ERROR: Cannot find /Users/Mch/go1.4/bin/go.…