Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 949 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 949 Bytes

go-webfinger

GoDoc Test Status Test Coverage

go-webfinger is a Go client for the Webfinger protocol.

Usage

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)
}