An open API service indexing awesome lists of open source software.

https://github.com/vidhill/godoc-examples


https://github.com/vidhill/godoc-examples

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# godoc-examples

Dummy project with testable examples that get embedded into docs when using `godoc`

### Links

- Official go blog article: https://go.dev/blog/examples
- Go docs: https://pkg.go.dev/testing#hdr-Examples
- `godoc` package https://pkg.go.dev/golang.org/x/tools/cmd/godoc

- https://pkg.go.dev/github.com/vidhill/godoc-examples
- https://pkg.go.dev/github.com/vidhill/[email protected]

### Install `godoc`

```bash
$ go install golang.org/x/tools/cmd/godoc@latest
```

### Run

```bash
$ godoc -http=:6060
```

### Run tests

```bash
$ go test ./...
```