diff options
Diffstat (limited to 'vendor/github.com/google/safehtml/template/state_string.go')
| -rw-r--r-- | vendor/github.com/google/safehtml/template/state_string.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/google/safehtml/template/state_string.go b/vendor/github.com/google/safehtml/template/state_string.go new file mode 100644 index 000000000..afbbf5a0d --- /dev/null +++ b/vendor/github.com/google/safehtml/template/state_string.go @@ -0,0 +1,16 @@ +// Code generated by "stringer -type State"; DO NOT EDIT + +package template + +import "fmt" + +const _State_name = "StateTextStateSpecialElementBodyStateTagStateAttrNameStateAfterNameStateBeforeValueStateHTMLCmtStateAttrStateError" + +var _State_index = [...]uint16{0, 9, 32, 40, 53, 67, 83, 95, 104, 114} + +func (i state) String() string { + if i >= state(len(_State_index)-1) { + return fmt.Sprintf("state(%d)", i) + } + return _State_name[_State_index[i]:_State_index[i+1]] +} |
