1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Access Go Docs Offline as a go til

This commit is contained in:
jbranchaud
2018-02-25 13:45:05 -06:00
parent 66636c3b5a
commit 9020043f0c
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Access Go Docs Offline
The Go language has a wonderfully comprehensive standard library. There is
documentation for all of it. You can access that documentation anytime if
you have an internet connection via
[https://golang.org/doc/](golang.org/doc/).
If you are without an internet connection, you're still in luck. Go has a
built-in feature for serving the documentation locally _offline_. Just run
the following command:
```
$ godoc -http=:6060
```
and then visit `localhost:6060`.
[source](http://www.andybritcliffe.com/post/44610795381/offline-go-lang-documentation)