Documentation ¶
Overview ¶
Package std collects implements an alternative standard library.
While Go's standard library and built-in identifiers typically do well in catering to the needs of the programmer, some functions that could assist the programmer in general programming cases do not exist in the standard Go distribution. Package std attempts to resolve this issue by providing a set of useful identifiers for general programming.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Access ¶
Access returns the nth element of slice s. Returns error if slice s does not have an element at index n.
For most access attempts on strings, []rune(str) will be a more appropriate choice than []byte(str) for the parameter s, as no individual byte in []byte(str) is guaranteed to hold a single Unicode code point.
func Contains ¶
func Contains[T comparable](s []T, elem T) bool
Contains checks slice s for the existence of an element elem.
func HasOnly ¶
func HasOnly[T comparable](s []T, elem T) bool
HasOnly checks if all elements of s are elem.
func Remove ¶
func Remove[T comparable](s []T, elem T) []T
Remove attempts to remove element elem from slice s and return the resulting slice. If elem is not present in s, s is returned unchanged.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package errors implements functions to manipulate errors.
|
Package errors implements functions to manipulate errors. |
Package gui provides a basic portable library to construct graphical user interfaces.
|
Package gui provides a basic portable library to construct graphical user interfaces. |
Package platform collects a list of platform names, codenames, and code characters.
|
Package platform collects a list of platform names, codenames, and code characters. |