unit

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSize

func FormatSize(n int64) string

FormatSize :)

func ParseDuration

func ParseDuration(s string) time.Duration

ParseDuration parses a string to time.Duration. If fails to parse a string, it will return 0.

func ParseSize

func ParseSize(s string) int64

ParseSize parses a string to int64 size. If fails to parse a string, it will return 0.

func ParseTime

func ParseTime(s string) time.Time

ParseTime parses a string to time.Time. If fails to parse a string, it will return time.Now().

Types

This section is empty.

Jump to

Keyboard shortcuts

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