Documentation ¶
Index ¶
- func Ceil(x, d int64) int64
- func CeilToMultiplier(x, m int64) int64
- func FloorToMultiplier(x, m int64) int64
- func GCD(a, b int64) int64
- func LCM(a, b int64) int64
- func Max(x, y int64) int64
- func Min(x, y int64) int64
- func RemoveEmptyStrings(stringList []string) []string
- func UnsafeString(b []byte) string
- func UnsafeStringBytes(s *string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ceil ¶ added in v0.13.0
Ceil returns integer greater or equal to x and denominator d division. Works only with x >= 0 and d > 0. It returns 0 with other values.
func CeilToMultiplier ¶ added in v0.12.0
CeilToMultiplier returns the integer greater or equal to x and multiplier m product. Works only with x >= 0 and m > 0. It returns 0 with other values.
func FloorToMultiplier ¶ added in v0.13.0
FloorToMultiplier returns the integer less or equal to x and multiplier m product. Works only with x >= 0 and m > 0. It returns 0 with other values.
func GCD ¶ added in v0.12.0
GCD returns the absolute greatest common divisor calculated via Euclidean algorithm
func RemoveEmptyStrings ¶
RemoveEmptyStrings removes empty strings from list and returns truncated slice
func UnsafeString ¶
UnsafeString returns string object from byte slice without copying
func UnsafeStringBytes ¶ added in v0.13.4
UnsafeStringBytes returns the string bytes
Types ¶
This section is empty.