policy/main.go

21 lines
386 B
Go
Raw Normal View History

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)
2023-03-04 08:58:02 +02:00
fmt.Println(a.String())
fmt.Println(a.Int64())
b := fmt.Sprintf("%b", a)
fmt.Println(b)
2022-08-12 14:47:01 +03:00
fmt.Println(acl.Verify(a, 63))
fmt.Println(acl.Verify(a, 62))
fmt.Println(acl.Verify(a, -1))
fmt.Println(acl.Verify(a, 3))
}