Package fedifinger provides tools for working with the WebFinger protocol as it is used by the Fediverse, for the Go programming language.
- Go 100%
| accturi.go | ||
| accturi_test.go | ||
| contenttypes.go | ||
| get.go | ||
| go.mod | ||
| go.sum | ||
| isactivitylink.go | ||
| LICENSE | ||
| README.md | ||
| resolve.go | ||
go-fedifinger
Package fedifinger provides tools for working with the WebFinger protocol as it is used by the Fediverse, for the Go programming language.
Documention
Online documentation, which includes examples, can be found at: http://godoc.org/codeberg.org/reiver/go-fedifinger
Examples
To resolve a Fediverse-ID to an HTTPS URL, do something similar to:
import "codeberg.org/reiver/go-fedifinger"
// ...
url, err := fedifinger.Resolve("@[email protected]")
To get the activity-JSON for a Fediverse-ID, do something similar to:
import "codeberg.org/reiver/go-fedifinger"
// ...
bytes, err := fedifinger.Get("@[email protected]")
Import
To import package fedifinger use import code like the follownig:
import "codeberg.org/reiver/go-fedifinger"
Installation
To install package fedifinger do the following:
GOPROXY=direct go get codeberg.org/reiver/go-fedifinger
Author
Package fedifinger was written by Charles Iliya Krempeaux