diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-03 20:52:46 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-03 20:52:46 +0200 |
| commit | 1016e7124120eb6a93fa763e84a6dffee97d516e (patch) | |
| tree | 8bd6a2f90506ff28bdf39b63f094e1476a3939c1 /docs | |
| parent | 5ec812f0e1dc00d8633bf129e11295cfd8d90b71 (diff) | |
Docs: Use pkg.go.dev for Go documentation
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/src/SUMMARY.md | 1 | ||||
| -rw-r--r-- | docs/src/api/go/README.md | 4 | ||||
| -rw-r--r-- | docs/src/api/go/example.md | 16 |
3 files changed, 13 insertions, 8 deletions
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index dc3bbc9..9274cee 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -20,7 +20,6 @@ - [Deregistering](./api/overview/deregistering.md) - [Typical flow](./api/overview/flow.md) - [Go](./api/go/README.md) - - [Functions](./api/go/functions.md) - [Example](./api/go/example.md) - [Python](./api/python/README.md) - [Functions](./api/python/functions.md) diff --git a/docs/src/api/go/README.md b/docs/src/api/go/README.md index e27a247..1202cf2 100644 --- a/docs/src/api/go/README.md +++ b/docs/src/api/go/README.md @@ -7,4 +7,6 @@ import "github.com/eduvpn/eduvpn-common" This brings the library into scope using the eduvpn-common prefix. -The functions that we define all operate on a `VPNState` object, thus to call a function it needs to be first created and then the function needs to be called. An example of how to tie all of this together is done at the end. +The documentation to then use this API is online at [pkg.go.dev](https://pkg.go.dev/github.com/eduvpn/eduvpn-common). + +[We also provide an example](./example.md). diff --git a/docs/src/api/go/example.md b/docs/src/api/go/example.md index 82baad8..a7f293b 100644 --- a/docs/src/api/go/example.md +++ b/docs/src/api/go/example.md @@ -1,13 +1,17 @@ # Example with comments The following is an example [in the repository](https://github.com/eduvpn/eduvpn-common/blob/main/cmd/cli/main.go). It is a command line client with the following flags ``` --get-institute string - The url of an institute to connect to --get-secure string - Gets secure internet servers. --get-secure-all string - Gets certificates for all secure internet servers. It stores them in ./certs. Provide an URL for the home server e.g. nl.eduvpn.org. + -get-custom string + The url of a custom server to connect to + -get-institute string + The url of an institute to connect to + -get-secure string + Gets secure internet servers ``` ```go {{#include ../../../../cmd/cli/main.go}} ``` + +The documentation to then use this API is online at [pkg.go.dev](https://pkg.go.dev/github.com/eduvpn/eduvpn-common). + +[We also provide an example](./example.md). |
