codecov-api-go-client

module
v0.0.0-...-2b78136 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2019 License: MIT

README

codecov-api-go-client

CodeCov API client in Go.

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

Usage

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL