dotenv

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	Test    bool   // 当前是否是测试环境
	RootDir string // 当前运行的二进制所在的目录

)

Functions

func Get

func Get(key string) string

func GetByDefault

func GetByDefault(key string, defaultValue string) string

func GetFloat64ByDefault added in v0.7.0

func GetFloat64ByDefault(key string, defaultValue float64) float64

func GetInt64ByDefault added in v0.4.0

func GetInt64ByDefault(key string, defaultValue int64) int64

func GetIntByDefault

func GetIntByDefault(key string, defaultValue int) int

func GetStrArrayByDefault

func GetStrArrayByDefault(key string, defaultValue []string) []string

func Load

func Load() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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