tree: 2e6e79ac05466df2325f98beaa3a776b1cba043c [search]
  1. .hgignore
  2. bits.go
  3. docker-bake.hcl
  4. Dockerfile
  5. LICENSE
  6. mode.go
  7. README.md
vendor/github.com/tonistiigi/dchapes-mode/README.md

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.

Go Reference

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"