github.com/pankona/gometalinter@v2.0.11+incompatible/_linters/src/golang.org/x/text/width/kind_string.go (about)

     1  // Code generated by "stringer -type=Kind"; DO NOT EDIT.
     2  
     3  package width
     4  
     5  import "fmt"
     6  
     7  const _Kind_name = "NeutralEastAsianAmbiguousEastAsianWideEastAsianNarrowEastAsianFullwidthEastAsianHalfwidth"
     8  
     9  var _Kind_index = [...]uint8{0, 7, 25, 38, 53, 71, 89}
    10  
    11  func (i Kind) String() string {
    12  	if i < 0 || i >= Kind(len(_Kind_index)-1) {
    13  		return fmt.Sprintf("Kind(%d)", i)
    14  	}
    15  	return _Kind_name[_Kind_index[i]:_Kind_index[i+1]]
    16  }