Standard library / reflect

reflect.Int16

Kind constant identifying 16-bit signed integer. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const Int16 Kind = 4

Working Example

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