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() ValueReturn 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()) }