config

package
v0.0.0-...-df740be Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config config util Author: Frank Lee Date: 2017-08-07 10:43:26 Last Modified by: Frank Lee Last Modified time: 2017-08-07 10:43:26

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(key string) bool

Contains contains key or not

func GetAll

func GetAll(key string, recurse bool) map[string]interface{}

GetAll if not recurse, only return k-v starting with exactly key, else return all k-v starting with key.

func GetBool

func GetBool(key string) bool

GetBool get bool value by key. If key is not set, return false. strconv.ParseBool error, return false.

func GetEval

func GetEval(key string) float64

GetEval get eval value by key. If key is not set, return 0. strconv.ParseFloat error, return 0.

func GetInt

func GetInt(key string) int

GetInt get int value by key. If key is not set, return 0. strconv.Atoi error, return 0.

func GetInt64

func GetInt64(key string) int64

GetInt64 get int64 value by key. If key is not set, return 0. strconv.ParseInt error, return 0.

func GetRunMode

func GetRunMode() string

GetRunMode get current run mode

func GetString

func GetString(key string) string

GetString get string value by key

Types

This section is empty.

Jump to

Keyboard shortcuts

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