Fork of go-webfinger for slurp
- Go 100%
|
|
||
|---|---|---|
| examples | add go mod support and use new import path | |
| .gitignore | refactor api for working with Resources | |
| .travis.yml | Configure travis for multiple versions of Go | |
| client.go | Add another error string for HTTP fallback | |
| client_test.go | merge jrd package into main webfinger package | |
| go.mod | add go mod support and use new import path | |
| go.sum | add go mod support and use new import path | |
| jrd.go | merge jrd package into main webfinger package | |
| jrd_test.go | merge jrd package into main webfinger package | |
| LICENSE | better with a license | |
| README.md | Go syntax highlighting | |
Go-Webfinger
Go client for the Webfinger protocol
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
packagemainimport("fmt""github.com/ant0ine/go-webfinger""os")funcmain(){email:=os.Args[1]client:=webfinger.NewClient(nil)resource,err:=webfinger.MakeResource(email)iferr!=nil{panic(err)}jrd,err:=client.GetJRD(resource)iferr!=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!