Standard library / go/types

go/types.Nil.Exported()

Reports whether the name starts with an uppercase Unicode letter; this alone does not establish package visibility. Expected stdout: 'false\n'.

Formal Syntax & Structure

go syntaxgo
func (obj *Nil) Exported() bool

Return Value

bool

Reports whether the name starts with an uppercase Unicode letter; this alone does not establish package visibility.

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/types")
func main() { v := types.Universe.Lookup("nil").(*types.Nil); fmt.Println(v.Exported()) }
Go Reference