...

Source file src/html/template/element_string.go

     1	// Code generated by "stringer -type element"; DO NOT EDIT.
     2	
     3	package template
     4	
     5	import "strconv"
     6	
     7	const _element_name = "elementNoneelementScriptelementStyleelementTextareaelementTitle"
     8	
     9	var _element_index = [...]uint8{0, 11, 24, 36, 51, 63}
    10	
    11	func (i element) String() string {
    12		if i >= element(len(_element_index)-1) {
    13			return "element(" + strconv.FormatInt(int64(i), 10) + ")"
    14		}
    15		return _element_name[_element_index[i]:_element_index[i+1]]
    16	}
    17	

View as plain text