Standard library / go/constant
go/constant.Unknown
Unknown or invalid constant category; compare Value.Kind with this constant. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const Unknown KindWorking Example
Example Snippetgo
package main
import ( "fmt" "go/constant")
func main() { fmt.Println(constant.MakeUnknown().Kind() == constant.Unknown) }