conf

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(path string, configPtr *AppConfig) (err error)

Types

type AppConfig

type AppConfig struct {
	ConfPath string

	Env env.Option
}

func MustLoadAppConfig

func MustLoadAppConfig(appConfigPath string) *AppConfig

MustLoadAppConfig 加载 app.toml ,若失败,会 panic

func (*AppConfig) Check

func (c *AppConfig) Check() (err error)

Jump to

Keyboard shortcuts

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