-
Notifications
You must be signed in to change notification settings - Fork 0
/
fileviewsignals_string.go
43 lines (35 loc) · 1.28 KB
/
fileviewsignals_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
// Code generated by "stringer -type=FileViewSignals"; DO NOT EDIT.
package giv
import (
"errors"
"strconv"
)
var _ = errors.New("dummy error")
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[FileViewDoubleClicked-0]
_ = x[FileViewWillUpdate-1]
_ = x[FileViewUpdated-2]
_ = x[FileViewNewFolder-3]
_ = x[FileViewFavAdded-4]
_ = x[FileViewSignalsN-5]
}
const _FileViewSignals_name = "FileViewDoubleClickedFileViewWillUpdateFileViewUpdatedFileViewNewFolderFileViewFavAddedFileViewSignalsN"
var _FileViewSignals_index = [...]uint8{0, 21, 39, 54, 71, 87, 103}
func (i FileViewSignals) String() string {
if i < 0 || i >= FileViewSignals(len(_FileViewSignals_index)-1) {
return "FileViewSignals(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _FileViewSignals_name[_FileViewSignals_index[i]:_FileViewSignals_index[i+1]]
}
func (i *FileViewSignals) FromString(s string) error {
for j := 0; j < len(_FileViewSignals_index)-1; j++ {
if s == _FileViewSignals_name[_FileViewSignals_index[j]:_FileViewSignals_index[j+1]] {
*i = FileViewSignals(j)
return nil
}
}
return errors.New("String: " + s + " is not a valid option for type: FileViewSignals")
}