legal

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package legal provides project-wide storage for compiled-in licenses.

Package legal provides a printing helper for the legal package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Licenses

func Licenses() []string

Licenses returns a slice of the licenses.

func MaybePrint

func MaybePrint(out io.Writer) bool

MaybePrint will print the licenses if flagLegal has been set. It will return the value of the flagLegal.

func RegisterLicense

func RegisterLicense(text string)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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