Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write
deprecated
Write a license with the year and name to the Writer. If there is an error writing to the Writer it will be returned.
Deprecated: Because Info is deprecated so too is this method. This function should be replaced in with WriteLic. Currently, Write calls WriteLic with Info.Name and Info.Year supplied as holder and year respectively.
Types ¶
type License ¶
type License string
License represents a license type.
func GetLicense ¶
GetLicense will attempt to find a license with the supplied name and return it. If no License can be found with the name an error is returned.
func (License) Substitute ¶
Substitute will replace all occurances of USER, and YEAR with the supplied values. This will not overwrite the exising License but will create and return a new License with the specified values replaced.