osutil

package
v0.0.0-...-964918b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFloat64Env

func GetFloat64Env(name string, def float64) float64

MustGetIntEnv get evironment value of 'name', and return provided default value if not found.

func GetHomeDir

func GetHomeDir() string

GetHomeDir gets current user's home directory.

func GetIntEnv

func GetIntEnv(name string, def int) int

MustGetIntEnv get evironment value of 'name', and return provided default value if not found.

func GetStringEnv

func GetStringEnv(name, def string) string

MustGetStringEnv get evironment value of 'name', and return provided default value if not found.

func IsFileExists

func IsFileExists(fileName string) bool

IsFileExists returns true if the file exists.

func OpenFile

func OpenFile(fileName string, flag int, perm os.FileMode) (*os.File, error)

OpenFile opens file from 'name', and create one if not exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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