/
README (full)
Mode
This is a fork of hg.sr.ht/~dchapes/mode with minimal patches and basic CI.
Mode
is a Go package that provides
a native Go implementation of BSD's
setmode
and getmode which can be used to modify the mode bits of
an os.FileMode value
based on a symbolic value as described by the
Unix chmod command.
Online package documentation is available via pkg.go.dev.
To install:
go get hg.sr.ht/~dchapes/mode
or go build any Go code that imports it:
import "hg.sr.ht/~dchapes/mode"
| dir | .github/ |
| dir | debian/ |
| file | .hgignore |
| file | Dockerfile |
| file | LICENSE |
| file | README.md |
| file | bits.go |
| file | bits_test.go |
| file | bits_val_test.go |
| file | c_test.go |
| file | docker-bake.hcl |
| file | fuzz_test.go |
| file | genmode_test.go |
| file | go.mod |
| file | go.sum |
| file | mode.go |
| file | mode_test.go |