Standard library / io/fs

fs.FileMode

Bitmask for file types, special mode bits and Unix permission bits; use Type and Perm to isolate them. Expected stdout: 'true -rw-r--r--\n'.

Formal Syntax & Structure

go syntaxgo
type FileMode uint32

Working Example

Example Snippetgo
package main
import (  "fmt"  "io/fs")
func main() { var m fs.FileMode = 0644; fmt.Println(m.IsRegular(), m.String()) }
Go Reference