Standard library / go/types
go/types.Universe
Scope containing predeclared identifiers. Treat this shared scope as read-only. Expected stdout: 'int\n'.
Formal Syntax & Structure
go syntaxgo
var Universe *ScopeWorking Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { fmt.Println(types.Universe.Lookup("int").Name()) }