Documentation
¶
Overview ¶
Package strutil implements some string utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDigitString ¶ added in v1.0.0
IsDigitString checks if a string only contains digits.
func ShellEscape ¶ added in v0.0.5
ShellEscape escapes a string for use in a shell command.
func ShellEscapeExceptTilde ¶ added in v0.0.5
ShellEscapeExceptTilde escapes a string for use in a shell command, except '~'.
func SliceContain ¶
SliceContain determines whether a string slice includes a certain value.
func UnsafeBytesToString ¶ added in v1.2.0
UnsafeBytesToString converts byte slice to string without allocation. The bytes passed to function must not be modified afterwards.
func UnsafeStringToBytes ¶ added in v1.2.0
UnsafeStringToBytes converts string to byte slice without allocation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.