util

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCount

func ByteCount(b uint64) string

ByteCount convert sizes in bytes into a human-readable string src: https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats the given time duration into a human-readable string src: https://gist.github.com/harshavardhana/327e0577c4fed9211f65#gistcomment-2557682

func WaitForSignals

func WaitForSignals(sig ...os.Signal) <-chan os.Signal

WaitForSignals blocks the thread and wait for the provided signals (os.Signal)

Types

This section is empty.

Jump to

Keyboard shortcuts

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