Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hypnoglow/go-codewars
A Codewars API client for Go.
https://github.com/hypnoglow/go-codewars
codewars
Last synced: 18 days ago
JSON representation
A Codewars API client for Go.
- Host: GitHub
- URL: https://github.com/hypnoglow/go-codewars
- Owner: hypnoglow
- License: mit
- Created: 2016-09-13T14:55:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-13T16:09:16.000Z (about 8 years ago)
- Last Synced: 2024-10-04T23:41:22.103Z (about 1 month ago)
- Topics: codewars
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-codewars
[![Build Status](https://travis-ci.org/hypnoglow/go-codewars.svg?branch=master)](https://travis-ci.org/hypnoglow/go-codewars)
[![Go Report Card](https://goreportcard.com/badge/github.com/hypnoglow/go-codewars)](https://goreportcard.com/report/github.com/hypnoglow/go-codewars)
[![GoDoc](https://godoc.org/github.com/hypnoglow/go-codewars?status.svg)](https://godoc.org/github.com/hypnoglow/go-codewars)A Codewars API client for Go.
## Example
```go
token := "some-api-token"
cw := codewars.NewClient(token)slug := "printing-array-elements-with-comma-delimiters"
kata, _, err := cw.Katas.GetKata(slug)
if err != nil {
fmt.Printf("Error: %v\n\n", err)
} else {
kataJSON, _ := json.MarshalIndent(kata, "", " ")
fmt.Printf("Kata:\n%s\n\n", kataJSON)
}
```See more complex examples in `examples` folder.
## Documentation
[Codewars API documentation](http://dev.codewars.com/).