twtxt Registry Library for Go
getwtxt/registry helps you implement twtxt registries in Go.
It uses no third-party dependencies whatsoever, only the standard library,
and has no global state.
Specifying your own
http.Client for requests is encouraged, with a sensible
default available by passing
nil to the constructor.
Using the Library
You can grab a copy by issuing:
$ go get -u github.com/getwtxt/registry
If you're using Go Modules,
go get is smart enough to snag the most recent
tagged version. Subsequent runs of
go get -u will update the local copy.
Then, in the appropriate source file of your project, include this in your
import ( "github.com/getwtxt/registry" )
The code is commented, so feel free to browse the files themselves. Alternatively, the generated documentation can be found at:
All contributions are very welcome! Please feel free to submit a
PR if you find something
that needs improvement.