Learn Go Programming
  • Home
  • Exercises

Welcome to the Go programming tutorial! You will find materials and exercises. Learn to write code by example.

Go runs on all common platforms (Mac, Linux, Windows). It is an open source programming language created by Google.

Table of contents

Overview of articles and exercises:

Start

  • About Go
  • Google Go
  • Installing Go
  • What is Gopath
  • Hello world
  • Comments

Variables

  • Strings
  • Keyboard input
  • Variables
  • Scope
  • Arrays
  • Array Slice

Control flow

  • For loops
  • Range
  • If statements
  • While loops
  • Switch statement

Files

  • File exists
  • Read file
  • Write file
  • Rename file

Data

  • Struct
  • Maps
  • Random numbers
  • Pointers
  • Slices

Functions

  • Methods
  • Defer
  • Multiple return
  • Variadic functions
  • Closure
  • Panic
  • Recursion
  • Errors

Concurrency

  • Goroutines
  • Channels
  • Channel buffering
  • Channel synchronizatoin
  • Channel directions
  • Select
  • Timeout
  • Close channel
  • Range channel

Time

  • Timers
  • Tickers
  • Time
  • Difference between two dates

JSON

  • Parse JSON
  • JSON encoding
  • JSON decode
  • Read JSON file

Additional

  • GUI
  • Concurrency
  • Text to speech
  • Socket Server
  • Socket client
  • Golang http server
  • Rest API in golang
  • Methods in golang
    • Example
    • Return valule
    • Video tutorial
    • Exercises

Cookie policy - Privacy policy - Terms of use

© 2021 golangr.com