hypnoglow / go-codewars

A Codewars API client for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-codewars

Build Status Go Report Card GoDoc

A Codewars API client for Go.

Example

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.

About

A Codewars API client for Go.

License:MIT License


Languages

Language:Go 100.0%