github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/user/user-type.go (about) 1 /* For license and copyright information please see LEGAL file in repository */ 2 3 package user 4 5 import "../protocol" 6 7 // CheckUserType check and return error if user not exist in base users 8 func CheckUserType(baseUsers, user protocol.UserType) (exist bool) { 9 return user&baseUsers == user 10 // err = ErrUserNotAllow 11 }