...
Run Format

Source file src/html/template/urlpart_string.go

Documentation: html/template

     1  // Code generated by "stringer -type urlPart"; DO NOT EDIT.
     2  
     3  package template
     4  
     5  import "strconv"
     6  
     7  const _urlPart_name = "urlPartNoneurlPartPreQueryurlPartQueryOrFragurlPartUnknown"
     8  
     9  var _urlPart_index = [...]uint8{0, 11, 26, 44, 58}
    10  
    11  func (i urlPart) String() string {
    12  	if i >= urlPart(len(_urlPart_index)-1) {
    13  		return "urlPart(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _urlPart_name[_urlPart_index[i]:_urlPart_index[i+1]]
    16  }
    17  

View as plain text