Skip to content

ant0ine/go-webfinger

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
jrd
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Go-Webfinger

Go client for the Webfinger protocol

Build Status

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

*It is a work in progress, the API is not frozen. We're trying to catchup with the last draft of the protocol: http://tools.ietf.org/html/draft-ietf-appsawg-webfinger-14 and to support the http://webfist.org *

Install

This package is "go-gettable", just do:

go get github.com/ant0ine/go-webfinger

Example

package main

import (
        "fmt"
        "github.com/ant0ine/go-webfinger"
        "os"
)

func main() {
        email := os.Args[1]

        client := webfinger.NewClient(nil)

        resource, err := webfinger.MakeResource(email)
        if err != nil {
                panic(err)
        }

        jrd, err := client.GetJRD(resource)
        if err != nil {
                fmt.Println(err)
                return
        }

        fmt.Printf("JRD: %+v", jrd)
}

Documentation

Author

Contributors

  • Thanks Will Norris for the major update to support draft-14, and the GAE compat!

MIT License

Analytics

About

Simple Client Implementation of WebFinger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published