Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Proprietary = License{Name: "proprietary"} PublicDomain = License{Name: "public domain"} Apache2 = License{Name: "Apache License 2.0", NoticeFile: true} BSD1 = License{Name: "1-clause BSD license"} BSD2 = License{Name: "2-clause BSD license"} BSD3 = License{Name: "3-clause BSD license"} ISC = License{Name: "ISC license"} MIT = License{Name: "MIT license"} MPL2 = License{Name: "Mozilla Public License 2.0", NoticeFile: true, WeakCopyleft: true} CcBySa40 = License{Name: "Creative Commons Attribution Share Alike 4.0 International", StrongCopyleft: true} )
Functions ¶
func IdentifyLicenses ¶
IdentifyLicense takes the contents of a license-file and attempts to identify the license(s) in it. If it is even a little unsure, it returns nil.
func IdentifySPDXLicenses ¶
IdentifySPDX takes the contents of a source-file and looks for SPDX license identifiers.
Types ¶
Click to show internal directories.
Click to hide internal directories.