setting

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting struct {
	// contains filtered or unexported fields
}

func NewSetting

func NewSetting(configName, configType string, configPaths ...string) (*Setting, error)

NewSetting 初始化本项目的配置的基础属性 设定配置文件的名称为 config,配置类型为 yaml,并且设置其配置路径为相对路径 configs/

func (*Setting) BindAll added in v1.1.0

func (s *Setting) BindAll(v interface{}) error

BindAll 绑定配置文件

Jump to

Keyboard shortcuts

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