Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sungwoncho/go-ufc
Go client for UFC API
https://github.com/sungwoncho/go-ufc
Last synced: 15 days ago
JSON representation
Go client for UFC API
- Host: GitHub
- URL: https://github.com/sungwoncho/go-ufc
- Owner: sungwoncho
- License: mit
- Created: 2016-07-10T01:33:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-10T02:20:02.000Z (over 8 years ago)
- Last Synced: 2024-11-01T11:07:05.647Z (2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ufc
Golang interface for UFC API v3.
## Installation
go get github.com/sungwoncho/go-ufc
## Usage
`ufc.New()` returns a new API client.
API client has the following methods
* Fighters()
* Fighter(id int)
* Events()
* Event(id int)*example*
```go
import "github.com/sungwoncho/go-ufc"func main() {
client := ufc.New()res, err := client.Fighters()
if err != nil {
// do something
}
}
```## License
MIT