go-ssb-room/roomdb/role_string.go

31 lines
779 B
Go

// SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
//
// SPDX-License-Identifier: MIT
// Code generated by "stringer -type=Role"; DO NOT EDIT.
package roomdb
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[RoleUnknown-0]
_ = x[RoleMember-1]
_ = x[RoleModerator-2]
_ = x[RoleAdmin-3]
}
const _Role_name = "RoleUnknownRoleMemberRoleModeratorRoleAdmin"
var _Role_index = [...]uint8{0, 11, 21, 34, 43}
func (i Role) String() string {
if i >= Role(len(_Role_index)-1) {
return "Role(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Role_name[_Role_index[i]:_Role_index[i+1]]
}