config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	ConfigPath   string
	PresenterOpt presenter.Option
	Output       string      `mapstructure:"output"`
	Verbose      int         `mapstructure:"verbose"`
	Forbid       StringArray `mapstructure:"forbid,deny"`
	Permit       StringArray `mapstructure:"permit,allow"`
	IgnorePkg    StringArray `mapstructure:"ignore-packages"`
}

func LoadConfigFromFile

func LoadConfigFromFile(v *viper.Viper, configPath string) (*Application, error)

func (*Application) Build

func (cfg *Application) Build() error

type StringArray

type StringArray []string

func (*StringArray) UnmarshalYAML

func (a *StringArray) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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