libaddlicense

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLicense

func AddLicense(root string, license []byte, ignore []string) error

AddLicense will add license to all files under the root, except path that matches the ignore patterns. The pattern used are regex patterns and match is implemented using golang regexp package. Note: The root can point to a file, but ignore pattern needs to be empty.

func RemoveLicense added in v0.0.4

func RemoveLicense(root string, license []byte, ignore []string) error

RemoveLicense will strip the license from files under the root, except path that matches the ignore patterns. The pattern used are regex patterns and match is implemented using golang regexp package. Note: The root can point to a file, but ignore pattern needs to be empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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