munge

package
v0.0.0-...-2bc12df Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFileMode

func ToFileMode(mode interface{}) (os.FileMode, error)

ToFileMode converts a given mode into an os.FileMode object. The mode can be either an integer or a string representing an octal/hex/decimal number.

func ToSize

func ToSize(v interface{}) (uint64, error)

ToSize converts v to a uint64 that's meant to represent content size

func ToTime

func ToTime(v interface{}) (time.Time, error)

ToTime converts v to a time.Time object.

func ToUintMode

func ToUintMode(mode interface{}) (uint64, error)

ToUintMode converts a given mode to a uint64. The mode can be either an integer or a string representing an octal/hex/decimal number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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