value

package
v12.130.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBool

func ParseBool(v string, defvals ...bool) bool

ParseFloat parses value as boolean

func ParseDuration

func ParseDuration(v string, mod time.Duration, defvals ...time.Duration) time.Duration

ParseDuration parses value as duration

func ParseFloat

func ParseFloat(v string, defvals ...float64) float64

ParseFloat parses value as float

func ParseInt

func ParseInt(v string, defvals ...int) int

ParseInt parses value as int

func ParseInt64

func ParseInt64(v string, defvals ...int64) int64

ParseInt64 parses value as 64-bit int

func ParseList

func ParseList(v string, defvals ...[]string) []string

ParseList parses value as list

func ParseMode

func ParseMode(v string, defvals ...os.FileMode) os.FileMode

ParseMode parses value as file mode

func ParseTimeDuration

func ParseTimeDuration(v string, defvals ...time.Duration) time.Duration

ParseTimeDuration parses value as time duration

func ParseTimestamp

func ParseTimestamp(v string, defvals ...time.Time) time.Time

ParseTimestamp parses value as Unix timestamp

func ParseTimezone

func ParseTimezone(v string, defvals ...*time.Location) *time.Location

ParseTimezone parses value as timezone

func ParseUint

func ParseUint(v string, defvals ...uint) uint

ParseUint parses value as uint

func ParseUint64

func ParseUint64(v string, defvals ...uint64) uint64

ParseUint64 parses value as 64-bit uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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