How to Write Go Code
2016-12-06 17:29
369 查看
Workspaces
A workspace is a directory hierarchy with three directories at its root:• src contains Go source files
• pkg contains package objects
• bin contains executable commands
The GOPATH environment variable
localhost:dll dll$ cat ~/.bash_profile export PATH=${PATH}:~/Library/Android/sdk/platform-tools:/usr/local/go/bin export GOPATH=$HOME/gowork
build、install and run that program with the go tool
//build go build dll/stringutil //install go install dll/hello //run $GOPATH/bin/hello
相关文章推荐
- Go语言入门系列1:安装,How to Write Go Code
- Go语言入门系列1:安装,How to Write Go Code
- 如何编写Go 代码 {How to Write Go Code}
- 如何写 go 代码 (How to Write Go Code 翻译)
- How to Write Go Code
- How to write custom static code analysis rules and integrate them into Visual Studio 2010
- How to write fast code
- how to write super fast file streaming code in C#?
- Untangling Spaghetti Code: How to Write Maintainable JavaScript
- 【Testable Code】Unit Tests, How to Write Testable Code and Why it Matters
- How JavaScript works: inside the V8 engine + 5 tips on how to write optimized code
- How to Write High-Performance C# Code
- How to write perfect C code
- how to write excellent code
- How to Write Unmaintainable Code @ JDJ
- C++ Portability Guide (How to write portable code)
- Java - How to write Thread-Safe Code in Java
- Talk about how to write good C# code from a bug
- All-In-One Code Framework(AIO): 如何使用C#编写进程外的COM组件 (How to write an out-of-proc COM server in C#)
- How to Write High-Performance C# Code