config

package module
v0.0.0-...-6f74b7b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 1

README

toml config file, app config reader

查找顺序

  • /tmp/config.toml
import "github.com/wiloon/pingd-config"

config.GetString("group0.key0", "")

Documentation

Index

Constants

View Source
const KeyProjectName = "project.name"

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

func GetBoolWithDefaultValue

func GetBoolWithDefaultValue(key string, def bool) bool

func GetInt

func GetInt(key string) int64

func GetIntWithDefaultValue

func GetIntWithDefaultValue(key string, def int64) int64

func GetString

func GetString(key string, def string) string

func LoadLocalConfig

func LoadLocalConfig(configFileName string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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