| 1 |
// Code generated by "stringer -type=PluginRestrictions"; DO NOT EDIT. |
| 2 |
|
| 3 |
package types |
| 4 |
|
| 5 |
import "strconv" |
| 6 |
|
| 7 |
func _() { |
| 8 |
// An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 |
// Re-run the stringer command to generate them again. |
| 10 |
var x [1]struct{} |
| 11 |
_ = x[PluginRestrictionsUnknown-0] |
| 12 |
_ = x[PluginRestrictionsBuiltinsOnly-1] |
| 13 |
_ = x[PluginRestrictionsNone-2] |
| 14 |
} |
| 15 |
|
| 16 |
const _PluginRestrictions_name = "PluginRestrictionsUnknownPluginRestrictionsBuiltinsOnlyPluginRestrictionsNone" |
| 17 |
|
| 18 |
var _PluginRestrictions_index = [...]uint8{0, 25, 55, 77} |
| 19 |
|
| 20 |
func (i PluginRestrictions) String() string { |
| 21 |
if i < 0 || i >= PluginRestrictions(len(_PluginRestrictions_index)-1) { |
| 22 |
return "PluginRestrictions(" + strconv.FormatInt(int64(i), 10) + ")" |
| 23 |
} |
| 24 |
return _PluginRestrictions_name[_PluginRestrictions_index[i]:_PluginRestrictions_index[i+1]] |
| 25 |
} |