Standard library / io/fs

fs.ModeType

Mask containing file type bits; a regular file has none set. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const ModeType FileMode = 2401763328

Working Example

Example Snippetgo
package main
import (  "fmt"  "io/fs")
func main() { fmt.Println((fs.ModeDir|0755)&fs.ModeType == fs.ModeDir) }
Go Reference