config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 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

Ext /*

func Name

func Name(name string) ConfigFn

Name /*

func Path

func Path(path string) ConfigFn

Path /*

Jump to

Keyboard shortcuts

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