go-webfinger is a Go client for the Webfinger protocol.
Install using:
go get webfinger.net/go/webfinger
A simple example of using the package:
package main
import (
"fmt"
"os"
"webfinger.net/go/webfinger"
)
func main() {
email := os.Args[1]
client := webfinger.NewClient(nil)
jrd, err := client.Lookup(email, nil)
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("JRD: %+v", jrd)
}