What is Go?

  • Go is a cross-platform, open source programming language
  • Go is a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language
  • Go was developed at Google by Robert Griesemer, Rob Pike, and Ken Thompson in 2007
  • Go’s syntax is similar to C++

What is Go Used For?

  • Web development (server-side)
  • Developing network-based programs
  • Developing cross-platform enterprise applications
  • Cloud-native development
Go Python C++
Statically typed Dynamically typed Statically typed
Fast run time Slow run time Fast run time
Compiled Interpreted Compiled
Fast compile time Interpreted Slow compile time
Supports concurrency through goroutines and channel No built-in concurrency mechanism Supports concurrency through threads
Has automatic garbage collection Has automatic garbage collection Does not have automatic garbage collection
Does not support classes and objects Has classes and objects Has classes and objects
Does not support inheritance Supports inheritance Supports inheritance


  • 1.helloworld.go
  • 2.datatypes.go
  • 3.variables.go
  • 4.constant.go
  • 5.control.go
  • 6.operators.go
  • 7.loops.go
  • 8.switch.go
  • 9.arrays.go
  • 10.slices.go
  • 11.struct.go
  • 12.maps.go
  • 13.functions.go
  • 14.functions-1.go


View Github