Standard library / go/constant

go/constant.MakeUnknown()

Create a sentinel for an unknown constant value. Expected stdout: 'Unknown\n'.

Formal Syntax & Structure

go syntaxgo
func MakeUnknown() Value

Return Value

Value

Create a sentinel for an unknown constant value.

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/constant")
func main() { fmt.Println(constant.MakeUnknown().Kind()) }
Go Reference