Documentation ¶ Index ¶ func AppendInt(b []byte, x int, width int) []byte func JoinIDs[T ~int | ~int32 | ~int64](prefix string, ids []T) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AppendInt ¶ func AppendInt(b []byte, x int, width int) []byte AppendInt appends the decimal form of x to b and returns the result. If the decimal form is shorter than width, the result is padded with leading 0's. If the decimal is longer than width, returns formatted decimal without any truncation. func JoinIDs ¶ func JoinIDs[T ~int | ~int32 | ~int64](prefix string, ids []T) string JoinIDs joins a slice of any ids into a comma separated string. Each ID could be prefixed with a string (e.g. n1, n2, n3 to represent nodes). Types ¶ This section is empty. Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.