Documentation ¶
Overview ¶
package util contains verious utilities utilized for rx
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToValue ¶
func StringToValue(s string) interface{}
StringToValue attempts to convert the given string into a value. This supports booleans, integers, and floats. The following values are considered booleans, case-insensitive: true, yes, false, no.
Integer radix is inferred by prefix, supporting 0b, 0o, or 0x (per strconv.ParseInt()).
func Unescape ¶
Unescapes escapes escape codes. I spent at least 15 minutes googling how to do this and couldn't find anything that does, or even anyone else who wanted to do this. I find this pretty shocking and I'm sure there's a better version of this out there somewhere. I also tried using Sprintf(), and that didn't work either.
This unescapes the following sequences: \a, \b, \e, \f, \n, \r, \t, \v, \\, \', and \"
Types ¶
This section is empty.