Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
YaleChen299 committed Aug 3, 2023
1 parent bb90d0d commit 21dd623
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/enums/groups/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ func RoleFromString(role string) (Role, bool) {
return RoleStandard, false
}

// Implements the Scanner interface
func (role *Role) Scan(value interface{}) error {
*role = Role(value.(string))
return nil
}

// Imokements the Valuer interface
func (role Role) Value() (driver.Value, error) {
switch role {
case RoleStandard:
Expand Down

0 comments on commit 21dd623

Please sign in to comment.