util

package
v0.0.0-...-6b32d26 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	TabulateLeft  = 0
	TabulateRight = 1
)

Variables

This section is empty.

Functions

func SimpleTimeToSeconds

func SimpleTimeToSeconds(simpleTime string) (int, error)

ParseSimpleTime parses input in the format 7s, 55m, 3h, 31d, 4w (second, minute, hour, day, week) The time.ParseDuration() function should have done this, but it does not support "d" and "w" extensions.

func Tabulate

func Tabulate(lines []string, separator string, outputSeparator string, directionFlags ...int) (result []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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