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