util

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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