Documentation ¶
Index ¶
- Constants
- func CallerFile(skipStack int) string
- func CallerFileName(skipStack int) string
- func Env(key, fallback string) string
- func EnvBool(key string, fallback bool) bool
- func EnvInt(key string, fallback int) int
- func EnvLookup(key string) (string, bool)
- func EnvUint(key string, fallback uint) uint
- func FitImageFile(filename string, maxWidth, maxHeight uint, file io.Reader) (*bytes.Buffer, error)
- func OnExit(handlers ...func(os.Signal))
- func RandInit()
- func RandLetterBytes(n int) []byte
- func RandString(n int) string
- func Workdir() string
Constants ¶
View Source
const ( KB int64 MB GB )
FileSize util
Variables ¶
This section is empty.
Functions ¶
func CallerFileName ¶
CallerFileName returns name of caller file
func FitImageFile ¶ added in v1.2.0
FitImageFile thumbnail
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.