package escape
import "github.com/influxdata/influxdb1-client/pkg/escape"
Package escape contains utilities for escaping parts of InfluxQL and InfluxDB line protocol.
Index ¶
- Variables
- func AppendUnescaped(dst, src []byte) []byte
- func Bytes(in []byte) []byte
- func IsEscaped(b []byte) bool
- func String(in string) string
- func Unescape(in []byte) []byte
- func UnescapeString(in string) string
Variables ¶
var Codes = map[byte][]byte{ ',': []byte(`\,`), '"': []byte(`\"`), ' ': []byte(`\ `), '=': []byte(`\=`), }
Codes is a map of bytes to be escaped.
Functions ¶
func AppendUnescaped ¶
AppendUnescaped appends the unescaped version of src to dst and returns the resulting slice.
func Bytes ¶
Bytes escapes characters on the input slice, as defined by Codes.
func IsEscaped ¶
IsEscaped returns whether b has any escaped characters, i.e. whether b seems to have been processed by Bytes.
func String ¶
String returns the escaped version of in.
func Unescape ¶
Unescape returns a new slice containing the unescaped version of in.
func UnescapeString ¶
UnescapeString returns unescaped version of in.
Source Files ¶
- Version
- v0.0.0-20220302092344-a9ab5670611c (latest)
- Published
- Mar 2, 2022
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 month ago –
Tools for package owners.