{"modulePath":"github.com/while-loop/licy","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Variables\n\n```go\nvar (\n\tName      = \"licy\"\n\tVersion   = \"0.0.2-dev\"\n\tCommit    = \"head\"\n\tBuildDate = \"now\"\n)\n```\n\n```go\nvar (\n\tErrNotFound = errors.New(\"license not found\")\n)\n```\n\n## Functions\n\n```go\nfunc Asset(name string) ([]byte, error)\n```\nAsset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetDir(name string) ([]string, error)\n```\nAssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:\n\n\tdata/\n\t  foo.txt\n\t  img/\n\t    a.png\n\t    b.png\n\nthen AssetDir(\"data\") would return \\[]string{\"foo.txt\", \"img\"} AssetDir(\"data/img\") would return \\[]string{\"a.png\", \"b.png\"} AssetDir(\"foo.txt\") and AssetDir(\"notexist\") would return an error AssetDir(\"\") will return \\[]string{\"data\"}.\n\n```go\nfunc AssetInfo(name string) (os.FileInfo, error)\n```\nAssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.\n\n```go\nfunc AssetNames() []string\n```\nAssetNames returns the names of the assets.\n\n```go\nfunc MustAsset(name string) []byte\n```\nMustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.\n\n```go\nfunc RestoreAsset(dir, name string) error\n```\nRestoreAsset restores an asset under the given directory\n\n```go\nfunc RestoreAssets(dir, name string) error\n```\nRestoreAssets restores an asset under the given directory recursively\n\n## Types\n\n```go\ntype License struct {\n\tConditions  []string `yaml:\"conditions\"`\n\tDescription string   `yaml:\"description\"`\n\tHow         string   `yaml:\"how\"`\n\tLimitations []string `yaml:\"limitations\"`\n\tPermissions []string `yaml:\"permissions\"`\n\tSource      string   `yaml:\"source\"`\n\tSpdxID      string   `yaml:\"spdx-id\"`\n\tTitle       string   `yaml:\"title\"`\n\tUsing       string   `yaml:\"using\"`\n\tBody        string\n}\n```\n\n```go\nfunc GetLicense(licenseName string) (License, error)\n```\n\n```go\nfunc GetLicenses() ([]License, error)\n```\n\n```go\nfunc (l *License) FillBody(org string, year int)\n```\n\n```go\nfunc (l *License) FillProject(project string)\n```\n\n```go\nfunc (l *License) Save(w io.Writer) (int, error)\n```\n\n```go\ntype Licenses []License\n```\n\n```go\nfunc (l Licenses) Len() int\n```\n\n```go\nfunc (l Licenses) Less(i, j int) bool\n```\n\n```go\nfunc (l Licenses) Swap(i, j int)\n```\n\n","path":"github.com/while-loop/licy","name":"main","synopsis":"","isRedistributable":true}
