aergoio/aergo

View on GitHub
chain/statindex_string.go

Summary

Maintainability
A
0 mins
Test Coverage
D
60%
// Code generated by "stringer -type=statIndex"; DO NOT EDIT.

package chain

import "strconv"

const _statIndex_name = "ReorgStatMaxStat"

var _statIndex_index = [...]uint8{0, 9, 16}

func (i statIndex) String() string {
    if i < 0 || i >= statIndex(len(_statIndex_index)-1) {
        return "statIndex(" + strconv.FormatInt(int64(i), 10) + ")"
    }
    return _statIndex_name[_statIndex_index[i]:_statIndex_index[i+1]]
}