Documentation ¶
Overview ¶
Package misc contains Go utilities that I don't have a good place to put, that I need elsewhere, and that aren't in the standard library.
Index ¶
Constants ¶
View Source
const MaxIntValue = int(^uint(0) >> 1)
MaxIntValue is the maximum value of an int.
Variables ¶
This section is empty.
Functions ¶
func Grow ¶
Grow(buf, n) returns a slice of length at least n. It allocates if and only if cap(buf) < n. Otherwise it returns buf or re-slices buf.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.