Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumePrefix ¶
ConsumePrefix checks if *s has the given prefix, and if yes, modifies it to remove the prefix. The return value indicates whether the original string had the given prefix.
func ConsumeSuffix ¶
ConsumeSuffix checks if *s has the given suffix, and if yes, modifies it to remove the suffix. The return value indicates whether the original string had the given suffix.
func PointerOrDefault ¶
PointerOrDefault returns the string if it's not nil nor empty, or the default.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.