config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 1 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 NewConfig

func NewConfig(file []FileConfig, key string, target interface{}) *Config

func (*Config) AddConfigPaths

func (c *Config) AddConfigPaths(paths []string)

func (*Config) GetConfig

func (c *Config) GetConfig() interface{}

func (*Config) ReadConfigFile

func (c *Config) ReadConfigFile(name string) error

func (*Config) ReadConfigFiles

func (c *Config) ReadConfigFiles(names []string) error

func (*Config) SetConfig

func (c *Config) SetConfig() error

type FileConfig

type FileConfig struct {
	FilePath string
	Files    []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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