utils

package
v0.0.0-...-c440590 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountSI

func ByteCountSI(input string) string

ByteCountSI converts input string like "982814103" (size in bytes, number represented as a string) to a more human-readable string like "969.9 MB"

func ByteCountSIInt

func ByteCountSIInt(input int) string

ByteCountSIInt converts input int like 982814103 (size in bytes) to a more human-readable string like "969.9 MB"

func GetTimeNow

func GetTimeNow() *time.Time

GetTimeNow returns timestamp two weeks ago

Types

This section is empty.

Jump to

Keyboard shortcuts

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