Standard library / go/constant

go/constant.Kind.String()

Return the human-readable constant category name. Expected stdout: 'Int\n'.

Formal Syntax & Structure

go syntaxgo
func (i Kind) String() string

Return Value

string

Return the human-readable constant category name.

Working Example

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