Help us shape the future of Go! Take the 2026 Go Developer Survey

helper

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvInt added in v0.10.2

func EnvInt(key interface{}, defaults ...int) int

EnvInt replace $ENV.xxx with the env and cast to the integer

func EnvString added in v0.10.2

func EnvString(key interface{}, defaults ...string) string

EnvString replace $ENV.xxx with the env

func ReadFile

func ReadFile(file io.Reader) ([]byte, error)

ReadFile 读取文件内容

func ReadFileString

func ReadFileString(file io.Reader) (string, error)

ReadFileString 读取文件内容, 返回String

func UnmarshalFile

func UnmarshalFile(file io.Reader, v interface{}) error

UnmarshalFile JSON Unmarshal

Types

This section is empty.

Jump to

Keyboard shortcuts

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