config

package
v0.0.0-...-50a2d83 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func New

func New(opt *Option) *Config

func (*Config) IsSet

func (c *Config) IsSet(key string) bool

func (*Config) Set

func (c *Config) Set(key string, value interface{}) error

func (*Config) UnmarshalKey

func (c *Config) UnmarshalKey(key string, rawVal interface{}) error

type Option

type Option struct {
	Path string
	Name string
	Type string
}

func NewOption

func NewOption() *Option

func (*Option) String

func (o *Option) String() string

Jump to

Keyboard shortcuts

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