must

package
v0.0.0-...-dc23390 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package must provides functions used in package and variables initialization. If an error occurs, those functions will panic. Use judiciously!

Package must provides functions used in package and variables initialization. If an error occurs, those functions will panic. Use judiciously!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c io.Closer)

Close wraps io.Closer.Close().

func ConvertToInt

func ConvertToInt(s string) int

ConvertToInt wraps strconv.Atoi for cases that ParseInt cannot handle

func Getenv

func Getenv(key string) string

Getenv wraps os.Getenv(key).

func LoadLocation

func LoadLocation(name string) *time.Location

LoadLocation wraps time.LoadLocation(name).

func ParseBool

func ParseBool(s string) bool

ParseBool wraps strconv.ParseBool(s).

func ParseDuration

func ParseDuration(s string) time.Duration

ParseDuration wraps time.ParseDuration(s).

func ParseFloat

func ParseFloat(s string) float64

ParseFloat wraps strconv.ParseFloat(s, 64).

func ParseInt

func ParseInt(s string) int64

ParseInt wraps strconv.ParseInt(s, 0, 64).

func RemoveFileSystemNode

func RemoveFileSystemNode(name string)

RemoveFileSystemNode wraps os.Remove(name).

Types

This section is empty.

Jump to

Keyboard shortcuts

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