Standard library / reflect
reflect.String
Kind constant identifying string. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const String Kind = 24Working Example
Example Snippetgo
package main
import ( "fmt" "reflect")
func main() { fmt.Println(reflect.TypeOf("").Kind() == reflect.String) }