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"