twtxt registry library for Go (moved into main getwtxt repo)
57a5ad3e — Ben Morrison 4 years ago
added note about new library location
c1cdfe88 — Ben Morrison 4 years ago
changing all references from github.com to sr.ht
7f879440 — Ben Morrison 4 years ago
instead of returning nil statuses on empty registry, return empty []string



You can also use your local clone with git send-email.


builds.sr.ht status Build Status

#twtxt Registry Library for Go

ARCHIVED: This library now lives in the main getwtxt repository

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

Just add it to your imports list in the file(s) where it's needed.

import (


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 specify that you are referring to getwtxt-registry when using the following: