Difference between revisions for go
|
← Previous edit |
Next edit → |
Additions:
$ godoc fmt | head
use 'godoc cmd/fmt' for documentation on the fmt command
PACKAGE DOCUMENTATION
package fmt
## The Go Programming Language – documentation in web server !
$ godoc -http=:8181
%%
## Go uses static linking by default
$ go build helloworld.go
$ ls -l
total 752
-rwxr-x
1 ebal ebal 1855827 Oct 14 23:07 helloworld
-rw-r
1 ebal ebal 109 Oct 14 23:05 helloworld.go $ ./helloworld
use 'godoc cmd/fmt' for documentation on the fmt command
PACKAGE DOCUMENTATION
package fmt
import “fmt”
$ godoc -http=:8181
%%
## Go uses static linking by default
$ go build helloworld.go
$ ls -l
total 752
-rwxr-x
1 ebal ebal 1855827 Oct 14 23:07 helloworld
-rw-r
1 ebal ebal 109 Oct 14 23:05 helloworld.go $ ./helloworld