Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
github.com/stone-payments/go-coveralls-api
Client for Coveralls API written in Go.
Note: the goal is to interact with administrative Coveralls API. To send coverage data, take a look at goveralls project.
Just follow the usual instructions for Go libraries:
go get github.com/loadsmart/go-coveralls-api
go-coveralls-api
uses Go Modules and therefore requires Go 1.11+.
To get the ID of a repo already configured in Coveralls
import (
"context"
"fmt"
"log"
"github.com/loadsmart/go-coveralls-api"
)
client := coveralls.NewClient("your-personal-access-token")
repository, err := client.Repositories.Get(context.Background(), "github", "user/repository")
if err != nil {
log.Fatalf("Error querying Coveralls API: %s\n", err)
}
fmt.Printf("Project has ID %d in Coveralls", repository.ID)
Replace your-personal-access-token
with your personal access token (can be found in your Coveralls account page).
This work is copyrighted to Loadsmart, Inc. and licensed under MIT. For details see LICENSE file.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.