From de2401a2d0e37d54a59852516987781450e561e1 Mon Sep 17 00:00:00 2001 From: Anatoly Prohacky Date: Fri, 12 Aug 2022 21:46:34 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acl/aclbit.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/acl/aclbit.go b/acl/aclbit.go index 42f6560..279b62e 100644 --- a/acl/aclbit.go +++ b/acl/aclbit.go @@ -12,7 +12,7 @@ type AclBit int64 func New(n ...NumBit) AclBit { var i64 AclBit for _, n0 := range n { - i64 = SetBitTrue(i64, n0) + i64 = SetTrue(i64, n0) } return i64 } @@ -27,7 +27,7 @@ func veryNumBit(n NumBit) bool { } // unite slice int to int64 -func UniteAcl(a []AclBit) AclBit { +func Unite(a []AclBit) AclBit { var endacl AclBit for _, a0 := range a { endacl = endacl | a0 @@ -37,7 +37,7 @@ func UniteAcl(a []AclBit) AclBit { } // set acl bit in true -func SetBitTrue(a AclBit, n NumBit) AclBit { +func SetTrue(a AclBit, n NumBit) AclBit { if veryNumBit(n) { return a | (1 << n) } @@ -46,7 +46,7 @@ func SetBitTrue(a AclBit, n NumBit) AclBit { } // set acl bit in false -func SetBitFalse(a AclBit, n NumBit) AclBit { +func SetFalse(a AclBit, n NumBit) AclBit { if veryNumBit(n) { return a &^ (1 << n) } @@ -55,7 +55,7 @@ func SetBitFalse(a AclBit, n NumBit) AclBit { } // verify bit return true or false -func VerifyBit(a AclBit, n NumBit) bool { +func Verify(a AclBit, n NumBit) bool { if veryNumBit(n) { var msk AclBit = 1 << n if (a & msk) == msk {