go4.org: go4.org/legal Index | Files

package legal

import "go4.org/legal"

Package legal provides in-process storage for compiled-in licenses.


Package Files


func Licenses Uses

func Licenses() []string

Licenses returns a slice of the licenses.

func RegisterLicense Uses

func RegisterLicense(text string)

RegisterLicense stores the license text. It doesn't check whether the text was already present.

Package legal is imported by 39 packages. Updated 2019-06-15. Refresh now. Tools for package owners.