config

package
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(configList ...ConfigFn) error

Types

type Config

type Config struct {
	Name string //文件名称
	Path string //文件路径
	Ext  string //文件后缀
}

func (*Config) InitConfig

func (c *Config) InitConfig() error

type ConfigFn

type ConfigFn func(config *Config) *Config

func Ext

func Ext(ext string) ConfigFn

*@Author Administrator *@Date 25/4/2021 14:40 *@desc 文件后缀

func Name

func Name(name string) ConfigFn

*@Author Administrator *@Date 25/4/2021 14:36 *@desc 配置默认读取应用名字

func Path

func Path(path string) ConfigFn

*@Author Administrator *@Date 25/4/2021 14:39 *@desc 配置路径

Jump to

Keyboard shortcuts

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