21 lines
386 B
Go
21 lines
386 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)
|
|
fmt.Println(a.String())
|
|
fmt.Println(a.Int64())
|
|
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))
|
|
}
|