Skip to content
twtxt registry library for Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
LICENSE
README.md
fetch.go
fetch_test.go
go.mod
init_test.go
integ_test.go
query.go
query_test.go
revive.toml
types.go
user.go
user_test.go

README.md

getwtxt|registry

Build Status   GoDoc

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 statement:

import (
  "github.com/getwtxt/registry"
)

Documentation

The code is commented, so feel free to browse the files themselves. Alternatively, the generated documentation can be found at:

godoc.org/github.com/getwtxt/registry

Contributions

All contributions are very welcome! Please feel free to submit a PR if you find something that needs improvement.

Notes

You can’t perform that action at this time.