.github
github: add basic ci.hgignore
Drop old go-fuzz stuff. Add random modes to Fuzz corpus.bits_test.go
Use arrays instead of static slices in test code.bits_val_test.go
Add Go1.18+ fuzzing and build constraints.bits.go
Fix some small typos.c_test.go
Use ignore build tag for c_test.go which references internaldocker-bake.hcl
github: add basic ciDockerfile
github: add basic cifuzz_test.go
Drop old go-fuzz stuff. Add random modes to Fuzz corpus.genmode_test.go
Drop old go-fuzz stuff. Add random modes to Fuzz corpus.go.mod
remove system umask detectiongo.sum
remove system umask detectionLICENSE
Use strings.Builder in place of bytes.Buffer.mode_test.go
Make X compatible with Linux/POSIXmode.go
Make X compatible with Linux/POSIXREADME.md
rename fork to allow go mod importsMode
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/modeor go build any Go code that imports it:
import "hg.sr.ht/~dchapes/mode"