Standard library / go/doc
go/doc.Mode
Bitmask controlling extraction behavior. Expected stdout: 'true false\n'.
Formal Syntax & Structure
go syntaxgo
type Mode intWorking Example
Example Snippetgo
package main
import ( "fmt" "go/doc")
func main() { var m doc.Mode = doc.AllDecls | doc.PreserveAST fmt.Println(m&doc.AllDecls != 0, m&doc.AllMethods != 0)}