Documentation ¶
Index ¶
- func AutoInstallLinuxDependencies()
- func Join[T str](bytes ...interface{}) T
- func JoinBytes(bytes ...interface{}) []byte
- func Match[T str](str T, re string) bool
- func RepFunc[T str, J str](str T, re string, rep func(data func(int) []byte) J, blank ...bool) J
- func RepFuncFirst[T str, J str](str T, re string, rep func(func(int) []byte) J, blank ...bool) J
- func RepStr[T str, J str](str T, re string, rep J) J
- func RepStrComplex[T str, J str](str T, re string, rep J, blank ...bool) J
- func Split[T str](str T, re string) []T
- type Regexp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoInstallLinuxDependencies ¶ added in v1.4.3
func AutoInstallLinuxDependencies()
func Join ¶ added in v1.4.1
func Join[T str](bytes ...interface{}) T
An easy way to join multiple values with different types, into a single value with one type accepts: []byte, byte, int32, string, [][]byte, int, int64, float64, float32
func JoinBytes ¶
func JoinBytes(bytes ...interface{}) []byte
An easy way to join multiple values into a single []byte accepts: []byte, byte, int32, string, [][]byte, int, int64, float64, float32
func RepFunc ¶
Replace a string with the result of a function similar to JavaScript .replace(/re/, function(data){})
func RepFuncFirst ¶
a copy of the RepFunc method modified to only run once
func RepStr ¶
func RepStr[T str, J str](str T, re string, rep J) J
Replace with a string note: this function is optimized for performance, and the replacement string does not accept replacements like $1
func RepStrComplex ¶ added in v1.4.1
A more complex version of the RepStr method this function will replace things in the result like $1 with your capture groups use $0 to use the full regex capture group use ${123} to use numbers with more than one digit