utils

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TABLE = []uint16{}/* 256 elements not displayed */

Functions

func Crc16

func Crc16(data []byte) uint16

func Crc16String

func Crc16String(data string) uint16

func Crc32String added in v1.4.0

func Crc32String(data string) uint32

Crc32String returns a crc32 checksum of a string. Crc32String(value) returns the same uint32 as FunC's "<value>"c string literal.

func GetOrderedKeys added in v1.0.1

func GetOrderedKeys[M ~map[K]V, K constraints.Ordered, V any](m M) []K

func HumanFriendlyCoinsRepr added in v1.0.15

func HumanFriendlyCoinsRepr(amount int64) string

func MethodIdFromName added in v1.0.1

func MethodIdFromName(methodName string) int

func ToCamelCase added in v1.0.1

func ToCamelCase(s string) string

func ToCamelCasePrivate added in v1.0.1

func ToCamelCasePrivate(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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