dotenv

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 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