gocense

package module
v0.0.0-...-ad955ea Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

gocense

A license scanner that is able to scan licenses of all your dependencies and their transitive dependencies. Written in Go - for use in Go projects.

License TrafficLights

License Light
None RED
Unknown RED
Apache License 2.0 GREEN
GNU GPL V3.0 RED
MIT License GREEN
BSD 2-Clause "Simplified" License TODO
BSD 3-Clause "New" or "Revised" License TODO
Boost Software License 1.0 Green
Eclipse Public License 2.0 TODO
GNU Affero GPL v3.0 RED
GNU GPL v2.0 RED
GNU LGPL v2.1 RED
Mozilla Public License 2.0 TODO
The Unilicense TODO

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDownloadLicense = errors.New("could not download license")

Functions

This section is empty.

Types

type Service

type Service interface {
	Get(path string) []depth.Pkg
	GetAllLicenses(deps []depth.Pkg) (map[string][]byte, error)
}

Service is a gocense service

func New

func New() Service

Jump to

Keyboard shortcuts

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