Go Tutorial

Go Data Types

Data Types

Go includes several built-in types you will use in every program.

  • string
  • int
  • float64
  • bool
  • slice
  • map
nums := []int{1, 2, 3}
fmt.Println(len(nums))
Try it Yourself
Run this GO example in your local environment or course sandbox.