Skip to content

Simple Client Implementation of WebFinger

License

Notifications You must be signed in to change notification settings

webfinger/go-webfinger

 
 

Repository files navigation

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

About

Simple Client Implementation of WebFinger

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%