Standard library / reflect
reflect.Kind.String()
Return the name of the kind, not the name of a defined type. Expected stdout: 'int\n'.
Formal Syntax & Structure
go syntaxgo
func (k Kind) String() stringReturn Value
string
Return the name of the kind, not the name of a defined type.
Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.Int.String()) }