Things that are different in Go

  • if values are unassigned to datatypes, then default value is 0(int & float), false(boolean), β€œβ€œ(string).
  • t "time" with this we can use t instead of time in while using package functions.
  • type of data is inferred when variable is declared using :=
  • Go checks the architecture of a user’s computer(32-bit or 64-bit), then uses a relevant bit size of a datatype.