Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dakimura/codecov-api-go-client

CodeCov API client in Go. https://docs.codecov.io/reference
https://github.com/dakimura/codecov-api-go-client

codecov codecoverage go golang

Last synced: about 1 month ago
JSON representation

CodeCov API client in Go. https://docs.codecov.io/reference

Awesome Lists containing this project

README

        

# codecov-api-go-client
CodeCov API client in Go.

See https://docs.codecov.io/reference

# Usage
```go
import (
"fmt"
"github.com/dakimura/codecov-api-go-client/codecovapi"
)

func main() {
token := "YOUR_API_TOKEN_GOES_HERE"
cli := codecovapi.NewClient(token, nil)

resp, err := cli.Get(codecovapi.GitHub, "owner name of the repository", "repository name")
// resp, err := cli.Get(codecovapi.GitHub, "dakimura", "readthrough") // e.g
// resp, err := cli.GetBranch(codecovapi.GitHub, "dakimura", "readthrough", "master")

if err != nil {
panic(err)
}
fmt.Println(resp)
}
```