Standard library / reflect

reflect.String

Kind constant identifying string. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const String Kind = 24

Working Example

Example Snippetgo
package main
import (  "fmt"  "reflect")
func main() { fmt.Println(reflect.TypeOf("").Kind() == reflect.String) }
Go Reference