2022-07-30 17:01:05 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"gitstore.ru/tolikproh/policy/acl"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-08-12 14:45:06 +03:00
|
|
|
a := acl.New(63, 63, 63, 3, 62, 62, 64, 64, 5654, 5435, -12234)
|
2022-07-30 17:01:05 +03:00
|
|
|
fmt.Println(a)
|
2022-08-12 14:45:06 +03:00
|
|
|
str := acl.String(a)
|
|
|
|
fmt.Println(str)
|
|
|
|
fmt.Println(acl.Int64(str))
|
2022-08-08 12:45:46 +03:00
|
|
|
b := fmt.Sprintf("%b", a)
|
|
|
|
fmt.Println(b)
|
2022-08-12 14:45:06 +03:00
|
|
|
fmt.Println(acl.VerifyBit(a, 63))
|
|
|
|
fmt.Println(acl.VerifyBit(a, 62))
|
|
|
|
fmt.Println(acl.VerifyBit(a, -1))
|
|
|
|
fmt.Println(acl.VerifyBit(a, 3))
|
2022-07-30 17:01:05 +03:00
|
|
|
}
|