Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dakimura/codecov-api-go-client
- Owner: dakimura
- License: mit
- Created: 2019-10-03T07:55:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-03T12:36:23.000Z (about 5 years ago)
- Last Synced: 2024-06-20T05:28:04.939Z (5 months ago)
- Topics: codecov, codecoverage, go, golang
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
}
```