mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 09:08:01 +00:00
Add Access Go Docs Offline as a go til
This commit is contained in:
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
For a steady stream of TILs from a variety of rocketeers, checkout
|
For a steady stream of TILs from a variety of rocketeers, checkout
|
||||||
[til.hashrocket.com](https://til.hashrocket.com/).
|
[til.hashrocket.com](https://til.hashrocket.com/).
|
||||||
|
|
||||||
_626 TILs and counting..._
|
_627 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -202,6 +202,7 @@ _626 TILs and counting..._
|
|||||||
|
|
||||||
### Go
|
### Go
|
||||||
|
|
||||||
|
- [Access Go Docs Offline](go/access-go-docs-offline.md)
|
||||||
- [Not So Random](go/not-so-random.md)
|
- [Not So Random](go/not-so-random.md)
|
||||||
- [Replace The Current Process With An External Command](go/replace-the-current-process-with-an-external-command.md)
|
- [Replace The Current Process With An External Command](go/replace-the-current-process-with-an-external-command.md)
|
||||||
- [Sleep For A Duration](go/sleep-for-a-duration.md)
|
- [Sleep For A Duration](go/sleep-for-a-duration.md)
|
||||||
|
|||||||
18
go/access-go-docs-offline.md
Normal file
18
go/access-go-docs-offline.md
Normal 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)
|
||||||
Reference in New Issue
Block a user