config

package
v0.0.0-...-e401c93 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLicensesToMap

func AddLicensesToMap(licenses []*LicenseConfig, contextPath string)

Types

type LicenseConfig

type LicenseConfig struct {
	Path       string `toml:"path"`
	Name       string `toml:"name"`
	Identifier string `toml:"identifier"`
}

func GetLicenseConfigs

func GetLicenseConfigs(path string) ([]*LicenseConfig, error)

func ImportStaticConfig

func ImportStaticConfig() ([]*LicenseConfig, error)

func (*LicenseConfig) AddToMap

func (license *LicenseConfig) AddToMap(contextPath string)

func (*LicenseConfig) ToLicense

func (license *LicenseConfig) ToLicense(contextPath string) *args.License

type MainConfig

type MainConfig struct {
	ListConfig     []string `toml:"customLicenses"`
	PathToLicenses string   `toml:"pathToLicenses"`
}

Jump to

Keyboard shortcuts

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