iron_config

package
v0.0.0-...-132f7fb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFilePath string
View Source
var SEP = "/"

var SEP = "."

Functions

This section is empty.

Types

type Config

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

配置

var Conf *Config

func NewConfiguration

func NewConfiguration(path string) (c *Config)

func (*Config) Exist

func (c *Config) Exist(path string) bool

func (*Config) GetBool

func (c *Config) GetBool(path string) bool

func (*Config) GetByScan

func (c *Config) GetByScan(path string, objptr interface{}) (err error)

func (*Config) GetFloat32

func (c *Config) GetFloat32(path string) float32

func (*Config) GetFloat64

func (c *Config) GetFloat64(path string) float64

func (*Config) GetInt

func (c *Config) GetInt(path string) int

func (*Config) GetString

func (c *Config) GetString(path string) string

Jump to

Keyboard shortcuts

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