Besides the basic aka. “primitives” data types there are some more advanced types.

To create own types you use structs

Especially for JSON the type interface as a kind of “any” type is useful to know and understand.

  • Basic
  • Basic Datatypes Strings and Runes Numbers Boolean Arrays Slices Maps

  • Structs
  • Advanced data types with structures

  • Interfaces
  • The "any" type - interfaces