bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/Go/Go Tutorial
Go•Go Tutorial

Go Introduction

What is Go?

  • Go is a cross-platform, open source programming language Go can be used to create high-performance applications Go is a fast, statically typed, compiled language known for its simplicity and efficiency 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

Why Use Go?

  • Go is fun and easy to learn
  • Go has fast run time and compilation time
  • Go supports concurrency
  • Go has memory management
  • Go works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)

Go Compared to Python and C++

GoPythonC++
Statically typedDynamically typedStatically typed
Fast run timeSlow run timeFast run time
CompiledInterpretedCompiled
Fast compile timeInterpretedSlow compile time
Supports concurrency through goroutines and channelNo built-in concurrency mechanismSupports concurrency through threads
Has automatic garbage collectionHas automatic garbage collectionDoes not have automatic garbage collection
Does not support classes and objectsHas classes and objectsHas classes and objects
Does not support inheritanceSupports inheritanceSupports inheritance

Notes: Compilation time refers to translating the code into an executable program Concurrency is performing multiple things out-of-order, or at the same time, without affecting the final outcome Statically typed means that the variable types are known at compile time

  • Compilation time refers to translating the code into an executable program
  • Concurrency is performing multiple things out-of-order, or at the same time, without affecting the final outcome
  • Statically typed means that the variable types are known at compile time

This tutorial will teach you the basics of Go.

It is not necessary to have any prior programming experience.

Previous

Go Tutorial

Next

Go Getting Started

This chapter

Overview
39

Lessons

95m

Read time

1. Go Tutorial2. Go Introduction3. Go Getting Started4. Go Syntax5. Go Comments6. Go Variables7. Go Multiple Variable Declaration8. Go Variable Naming Rules9. Go Constants10. Go Output Functions11. Go Formatting Verbs12. Go Data Types13. Go Boolean Data Type14. Go Integer Data Types15. Go Float Data Types16. Go String Data Type17. Go Arrays18. Go Slices19. Go Access, Change, Append and Copy Slices20. Go Operators21. Go Arithmetic Operators22. Go Assignment Operators23. Go Comparison Operators24. Go Logical Operators25. Go Bitwise Operators26. Go Conditions27. Go if statement28. Go if else Statement29. Go else if Statement30. Go Nested if Statement31. Go switch Statement32. Go Multi-case switch Statement33. Go For Loops34. Go Functions35. Go Function Parameters and Arguments36. Go Function Returns37. Go Recursion Functions38. Go Struct39. Go Maps

On this page

What is Go?What is Go Used For?Why Use Go?Go Compared to Python and C++