type io/fs.FileMode
19 uses
io/fs (current package)
fs.go#L97: Type() FileMode
fs.go#L154: Mode() FileMode // file mode bits
fs.go#L165: type FileMode uint32
fs.go#L175: ModeDir FileMode = 1 << (32 - 1 - iota) // d: is a directory
fs.go#L192: ModePerm FileMode = 0777 // Unix permission bits
fs.go#L195: func (m FileMode) String() string {
fs.go#L223: func (m FileMode) IsDir() bool {
fs.go#L229: func (m FileMode) IsRegular() bool {
fs.go#L234: func (m FileMode) Perm() FileMode {
fs.go#L239: func (m FileMode) Type() FileMode {
readdir.go#L58: func (di dirInfo) Type() FileMode {
walk.go#L136: func (d *statDirEntry) Type() FileMode { return d.info.Mode().Type() }
io/ioutil
ioutil.go#L45: func WriteFile(filename string, data []byte, perm fs.FileMode) error {
embed
embed.go#L236: func (f *file) Type() fs.FileMode { return f.Mode().Type() }
embed.go#L239: func (f *file) Mode() fs.FileMode {
os
types.go#L28: type FileMode = fs.FileMode
path/filepath
path.go#L546: func (d *statDirEntry) Type() fs.FileMode { return d.info.Mode().Type() }
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |