Primitives

V has less primitive types than Go.

Basic Types

  • bool either true or false

  • string

  • integer type int

  • float type float

  • rune (Unicode string)

Compound Types

  • arrays []

  • map {}

  • struct

Integer

Integer is sub-classified into signed and unsigned. signed means positive or negative and unsigned means positive only.

Signed Integer

Unsigned Integer

Last updated