vconfig

package
v0.0.22 Latest Latest
Warning

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

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

Documentation

Overview

Package vconfig

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(s string, def ...interface{}) *gvar.Var

Get 从默认配置文件中获取配置

Types

type CustomFileConfig added in v0.0.21

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

func NewConfigFromFile added in v0.0.21

func NewConfigFromFile(filename string) (*CustomFileConfig, error)

NewConfigFromFile 从不同的文件中获取配置对象

func (*CustomFileConfig) Get added in v0.0.21

func (cc *CustomFileConfig) Get(s string, def ...interface{}) *gvar.Var

Jump to

Keyboard shortcuts

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