Standard library / go/printer
go/printer.Mode
Bitmask of printing flags; combine compatible flags with bitwise OR. Expected stdout: 'true true\n'.
Formal Syntax & Structure
go syntaxgo
type Mode uintWorking Example
Example Snippetgo
package main
import ( "fmt" "go/printer")
func main() { var mode printer.Mode = printer.TabIndent | printer.UseSpaces fmt.Println(mode&printer.TabIndent != 0, mode&printer.UseSpaces != 0)}