An unofficial Go client for public devRant API
go get github.com/jay9596/goRant
go doc github.com/jay9596/goRant
Or visit:
GoDoc
-
devRant := goRant.New()
rants,err := devRant.Rants()
rant,comments,err := devRant.GetRant(rantID)
user,err := devRant.Profile("byte")
rants,err := devRant.Search("vscode")
rant,comments,err := devRant.Surprise()
rants,err := devRant.WeeklyRant()
rants,err := devRant.Collabs()
rants,err := devRant.Stories()
-
All rant specified above represent a Rant struct
The rants represent an array of Rant [ ]Rant
The user represent User struct
The comments represent an array of Comment [ ]Comment
- Add supporter ++ support
- Add Tests