Data Types in Go

Go datatypes can be categorised into, primitive and composite data types, Primitive and Composite Data Types.

This article is part of the Learning Go series

Primitive Data Types

These are the core data types, such as integers, strings,…etc. To learn more, see:

  • Integers in Go(article coming soon)
  • Strings in Go(article coming soon)
  • Boolean in Go (article coming soon)
  • Constants in Go (article coming soon)

Composite Data Types

Composite variables lets you store a collection of values inside a single variable. They use primitive variables as their building blocks. There are several kinds of composites data types:

  • Arrays (article coming soon)
  • Slices (article coming soon)
  • Structs in Go
  • Maps (article coming soon)

Related Articles



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store