config

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ConfigPath is the path of the application config
	ConfigPath string
	// ConfigName is the name of the application config
	ConfigName string
	// ConfigFileType is the type of the application config
	ConfigFileType string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ConfigPath     string
	ConfigName     string
	ConfigFileType string
}

Config is the configuration for the application

func New

func New() (*Config, error)

New creates a new Config instance

func (*Config) Load

func (s *Config) Load(c interface{}) error

Load loads the configuration.

Jump to

Keyboard shortcuts

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