github.com/aergoio/aergo@v1.3.1/chain/statindex_string.go (about)

     1  // Code generated by "stringer -type=statIndex"; DO NOT EDIT.
     2  
     3  package chain
     4  
     5  import "strconv"
     6  
     7  const _statIndex_name = "ReorgStatMaxStat"
     8  
     9  var _statIndex_index = [...]uint8{0, 9, 16}
    10  
    11  func (i statIndex) String() string {
    12  	if i < 0 || i >= statIndex(len(_statIndex_index)-1) {
    13  		return "statIndex(" + strconv.FormatInt(int64(i), 10) + ")"
    14  	}
    15  	return _statIndex_name[_statIndex_index[i]:_statIndex_index[i+1]]
    16  }