Simple and easy Soteria Library for Go.
- Go 100%
| client.go | feat, docs: add more routes, add descriptions to functions | |
| go.mod | initial commit :3 | |
| LICENSE | chore: add LICENSE | |
| post.go | feat, docs: add more routes, add descriptions to functions | |
| post_test.go | chore: remove TestPosting from testing | |
| README.md | docs: forgor time import in the example | |
| user.go | fix: forgor a & | |
| user_test.go | feat, docs: add more routes, add descriptions to functions | |
goteria
Simple and easy Soteria Library for Go.
Installation
Requirements
Instructions
- Go get it!!!
go get codeberg.org/soteria/goteria
Usage
import("codeberg.org/soteria/goteria""time""log")funcmain(){client:=goteria.NewClient("https://api.soteria.social",time.Second*5,"<TOKEN>")// You can also leave the token string emptyuser,err:=goteria.FetchUser(client,"ID")iferr!=nil{log.Fatal(err)}log.Println(user.Username)}