diff --git a/acl/aclbit.go b/acl/aclbit.go index 1c3eb39..80d6be8 100644 --- a/acl/aclbit.go +++ b/acl/aclbit.go @@ -70,6 +70,16 @@ func (a AclBit) String() string { return strconv.FormatInt(int64(a), 2) } +// converting string bits to int64 +func (a AclBit) Int64() int64 { + + i64, err := strconv.ParseInt(a.String(), 2, 64) + if err != nil { + return -1 + } + return i64 +} + // converting string bits to int64 func Int64(i any) int64 { var i64 int64