- Description:
- Fork of godoc.org
- Owner:
- Oliver Lowe
- Last Change:
- Clone URL:
Commit Briefs
internal/server: value, not function (master)
Just checking one string, same name as function, don't need a function.
internal/server, internal/godoc: move more doc building to godoc
Again, shrinking server package so it's easier to test when we refactor database stuff.
all: keep package parsing in the godoc package
The function named buildPackage wasn't really clear what was going on: each named file was being parsed by the Go parser. Parsing files has nothing to do with the server implementation. Moving stuff out of the server package now will make modifying how the server deals interacts with the database easier.
internal/server: squash line
No hard line length limit in Go
internal/proxy, internal/server: don't fetch unused module zip size
It was only ever used for one log message. We still keep the maximum file size to fetch, though, but the server doesn't need to know about it. While here use regular http.Client.Head as only context.TODO was ever provided.
Just use go install
One less dependency to document, and all it did was run a single go command anyway.
Branches
Tree
.gitignore | commits | blame |
LICENSE | commits | blame |
README.md | commits | blame |
cmd/ | |
contrib/ | |
go.mod | commits | blame |
go.sum | commits | blame |
internal/ | |
schema.sql | commits | blame |
static/ |
README.md
# gddo [![Go Documentation](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo?status.svg)](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo) gddo is a maintained fork of the software that once powered godoc.org, and you can use it to browse documentation for Go packages. A hosted instance is available at [godocs.io](https://godocs.io). ## Installation go install ./cmd/gddo/ ## Running Initialize the PostgreSQL database: psql -f schema.sql Then run: gddo \ --db "postgres://localhost" \ --http :8080 See `gddo --help` for all available flags. See the [documentation](https://godocs.io/git.sr.ht/~sircmpwn/gddo/cmd/gddo) for more information. ## Questions? Patches? Send them to the [mailing list](https://lists.sr.ht/~sircmpwn/godocs.io).