Package fedifinger provides tools for working with the WebFinger protocol as it is used by the Fediverse, for the Go programming language.
Find a file
2025-09-03 16:35:35 -07:00
accturi.go codeberg 2025-09-03 16:35:35 -07:00
accturi_test.go fedifinger.AcctURI() 2025-09-03 15:36:19 -07:00
contenttypes.go fedifinger.Get() 2025-02-06 04:46:44 -08:00
get.go fedifinger.Get() 2025-02-06 04:46:44 -08:00
go.mod codeberg 2025-09-03 16:35:35 -07:00
go.sum codeberg 2025-09-03 16:35:35 -07:00
isactivitylink.go codeberg 2025-09-03 16:11:16 -07:00
LICENSE initial commits 2025-02-06 04:35:26 -08:00
README.md codeberg 2025-09-03 15:23:04 -07:00
resolve.go fedifinger.Resolve() 2025-09-03 16:14:14 -07:00

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

GoDoc

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