Standard library / go/types
go/types.Term
Represents one exact or underlying-type union term. Expected stdout: '~int\n'.
Formal Syntax & Structure
go syntaxgo
type Term termWorking Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func term() *types.Term { return types.NewTerm(true, types.Typ[types.Int]) }
func main() { fmt.Println(term()) }