policy/main.go
2022-08-12 21:47:01 +10:00

22 lines
406 B
Go

package main
import (
"fmt"
"gitstore.ru/tolikproh/policy/acl"
)
func main() {
a := acl.New(63, 63, 63, 3, 62, 62, 64, 64, 5654, 5435, -12234)
fmt.Println(a)
str := acl.String(a)
fmt.Println(str)
fmt.Println(acl.Int64(str))
b := fmt.Sprintf("%b", a)
fmt.Println(b)
fmt.Println(acl.Verify(a, 63))
fmt.Println(acl.Verify(a, 62))
fmt.Println(acl.Verify(a, -1))
fmt.Println(acl.Verify(a, 3))
}