/
datasets_string.go
46 lines (37 loc) · 1.31 KB
/
datasets_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Code generated by "stringer -type=ContentType,ContentEncoding -linecomment -output=datasets_string.go"; DO NOT EDIT.
package axiom
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[JSON-1]
_ = x[NDJSON-2]
_ = x[CSV-3]
}
const _ContentType_name = "application/jsonapplication/x-ndjsontext/csv"
var _ContentType_index = [...]uint8{0, 16, 36, 44}
func (i ContentType) String() string {
i -= 1
if i >= ContentType(len(_ContentType_index)-1) {
return "ContentType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ContentType_name[_ContentType_index[i]:_ContentType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Identity-1]
_ = x[Gzip-2]
_ = x[Zstd-3]
}
const _ContentEncoding_name = "gzipzstd"
var _ContentEncoding_index = [...]uint8{0, 0, 4, 8}
func (i ContentEncoding) String() string {
i -= 1
if i >= ContentEncoding(len(_ContentEncoding_index)-1) {
return "ContentEncoding(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ContentEncoding_name[_ContentEncoding_index[i]:_ContentEncoding_index[i+1]]
}