format

package
v0.0.0-...-f6d5bc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Byte     = 1
	KiloByte = Byte * 1000
	MegaByte = KiloByte * 1000
	GigaByte = MegaByte * 1000
)

Variables

This section is empty.

Functions

func HumanBytes

func HumanBytes(b int64) string

func HumanTime

func HumanTime(t time.Time, zeroValue string) string

func HumanTimeLower

func HumanTimeLower(t time.Time, zeroValue string) string

func OpenSSHPrivateKey

func OpenSSHPrivateKey(key crypto.PrivateKey, comment string) (*pem.Block, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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