Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reiver/go-fedifinger

Package fedifinger provides tools for working with the WebFinger protocol as it is used by the Fediverse, for the Go programming language.
https://github.com/reiver/go-fedifinger

activitypub activitystreams decentralized-social fediverse social-media social-web webfinger

Last synced: about 6 hours ago
JSON representation

Package fedifinger provides tools for working with the WebFinger protocol as it is used by the Fediverse, for the Go programming language.

Awesome Lists containing this project

README

        

# 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/github.com/reiver/go-fedifinger

[![GoDoc](https://godoc.org/github.com/reiver/go-fedifinger?status.svg)](https://godoc.org/github.com/reiver/go-fedifinger)

## Examples

To resolve a **Fediverse-ID** to an HTTPS URL, do something similar to:

```golang
import "github.com/reiver/go-fedifinger"

// ...

url, err := fedifinger.Resolve("@[email protected]")
```

To get the activity-JSON for a **Fediverse-ID**, do something similar to:

```golang
import "github.com/reiver/go-fedifinger"

// ...

bytes, err := fedifinger.Get("@[email protected]")
```

## Import

To import package **fedifinger** use `import` code like the follownig:
```
import "github.com/reiver/go-fedifinger"
```

## Installation

To install package **fedifinger** do the following:
```
GOPROXY=direct go get github.com/reiver/go-fedifinger
```

## Author

Package **fedifinger** was written by [Charles Iliya Krempeaux](http://reiver.link)