Versions in this module Expand all Collapse all v0 v0.1.1 Feb 21, 2021 Changes in this version type Options + func (o *Options) Append(opts ...*Options) v0.1.0 Feb 21, 2021 Changes in this version + var ErrEmptyOptionsYaml = errors.New(`empty yaml content of options`) + var ErrOpenOptionsFile = errors.New(`open options file failed`) + var ErrResolveOptionsYaml = errors.New(`resolve options from yaml failed`) + type Options struct + func NewOptions() *Options + func WithOption(name string, value interface{}) *Options + func (o *Options) Merge(prefix string, options map[string]interface{}) + func (o *Options) MergeYaml(yamlData []byte) error + func (o *Options) MergeYamlFile(filePath string) error + func (o *Options) Section(name string) *Options + func (o *Options) Value(name string) interface{} + func (o *Options) WithOption(name string, value interface{})