package
4.10.0
Repository: https://github.com/laisky/go-utils.git
Documentation: pkg.go.dev

# Functions

AbsInt32 abs(v) ignore int exceeds limit error, abs(MinInt32) == MaxInt32.
AbsInt64 abs(v) ignore int exceeds limit error, abs(MinInt64) == MaxInt64.
Bytes2Str unsafe convert bytes to str.
HumanReadableByteCount convert bytes to human readable string Args: - bytes: - si: `si ? 1024 : 1000` Example: `HumanReadableByteCount(1005, false) -> "1.01KB"`.
Max return the maximal value.
Min return the minimal value.
Number2Roman convert number to roman.
Round round float64 Round(1.005, 2) -> 1.01.
Str2Bytes unsafe convert str to bytes.

# Constants

SortOrderAsc asc.
SortOrderDesc desc.

# Interfaces

Number is a number type.
Sortable Data types that can be compared by >, <, ==.

# Type aliases

SortOrder sort order.