Predeclared type
Go int16 type
Signed 16-bit integer, range -32768 to 32767; useful for signed 16-bit data. Arithmetic stays in the operand type. Example output: '-30000'.
Formal Syntax & Structure
go syntaxgo
int16Working Example
Example Snippetgo
package main
import ( "fmt")
func main() { var sample int16 = -30000 fmt.Println(sample)}