helper

package
v0.0.0-...-c037712 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LayoutDefault = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func BuildUrlParams

func BuildUrlParams(p interface{}) string

func ByteConversion

func ByteConversion(fileSize uint64) (size string)

func CheckIpPort

func CheckIpPort(s string) error

func FloatRound

func FloatRound(f float64, n int) float64

func GBByteConversion

func GBByteConversion(size uint64) string

func GetIp

func GetIp(s string) string

func Must

func Must(err error, ctxinfo ...interface{})

Must make error panic.

func Percentage

func Percentage(used, total uint64) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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