Standard library / go/types
go/types.Builtin
Represents a predeclared built-in function; its type is not an ordinary callable signature. Expected stdout: 'len\n'.
Formal Syntax & Structure
go syntaxgo
type Builtin struct {}Working Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { v := types.Universe.Lookup("len").(*types.Builtin); fmt.Println(v.Name()) }