-
Notifications
You must be signed in to change notification settings - Fork 8
/
segment_type.go
32 lines (26 loc) · 1 KB
/
segment_type.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
// Code generated by "stringer -type TaskSegmentType -trimprefix Segment -output segment_type.go"; DO NOT EDIT.
package todotxt
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[SegmentIsCompleted-1]
_ = x[SegmentCompletedDate-2]
_ = x[SegmentPriority-3]
_ = x[SegmentCreatedDate-4]
_ = x[SegmentTodoText-5]
_ = x[SegmentContext-6]
_ = x[SegmentProject-7]
_ = x[SegmentTag-8]
_ = x[SegmentDueDate-9]
}
const _TaskSegmentType_name = "IsCompletedCompletedDatePriorityCreatedDateTodoTextContextProjectTagDueDate"
var _TaskSegmentType_index = [...]uint8{0, 11, 24, 32, 43, 51, 58, 65, 68, 75}
func (i TaskSegmentType) String() string {
i -= 1
if i >= TaskSegmentType(len(_TaskSegmentType_index)-1) {
return "TaskSegmentType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _TaskSegmentType_name[_TaskSegmentType_index[i]:_TaskSegmentType_index[i+1]]
}