Skip to main content
pelatihan
.org
Learn. Practice. Grow.
Category
EN
Sign in
Sign up
Menu
Go Curriculum: 2 Chapters, 18 Lessons — pelatihan.org
Home
/
Catalog
/
Go
/
Curriculum
Curriculum
Go Curriculum
Learn Go online with 18 structured lessons, code examples, and 90 quiz questions.
18 lessons
2 chapters
90 questions
Summaries and key points are free to preview. Full lessons, code examples, and quizzes require a subscription.
01
Go Tutorial
18 lessons
01
Go Home
This page is the entrance to the Go tutorial on W3Schools. Go (or Golang) is a programming language developed at Google, compiled, statically typed, and renowned for its concise…
02
Go Introduction
This lesson introduces the Go language in its entirety: its origins in Google, its design philosophy, and its advantages. Go combines simple C-style syntax with modern features…
03
Go Get Started
This page explains the first step to starting Go: download and install the toolchain from the official website, check the version, and then create the first program. Once…
04
Go Syntax
This lesson discusses the basic rules of writing the Go syntax. Each Go file is preceded by a package declaration, continued import when necessary, and contains functions…
05
Go Comments
This lesson explains how to write comments on Go. One-line commentary is written with two slashes // and multi-line commentary is wrapped /*... */, similar to the C family of…
06
Go Variables
This lesson teaches declaration of variables in Go using the keyword var, short declaration:=, as well as how to define type explicitly or through type inference. The unvalued…
07
Go Constants
This lesson discusses the Go constant, a fixed value that cannot be changed after being declared with the keyword const. The constants in Go are inherently untyped so flexible…
08
Go Output
This lesson explains the different ways to display output in Go through an fmt package. The fmt.Println function prints values with spaces and new lines, fmt.Print without new…
09
Go Data Types
This study grouped primitive data types into Go: strings, various int and uint variants, float32 as well as float64, bool, byte, and rune. Go does not perform type conversion…
10
Go Arrays
This lesson discusses an array in Go, which is a set of elements with the same type and fixed length as defined in the declaration. The array index starts from 0 and its length…
11
Go Slices
This lesson explains slice, data structure that contains a set of elements with dynamic lengths that are favorites in Go. Slice can be made directly with []type or via make(),…
12
Go Operators
This lesson describes the operators in Go: arithmetic (+, -, *, /, %), comparison (==,!=, <, >, <= >=), logic (&&, 13:1,!), and definitions such as = and +=. Go also provides…
13
Go Conditions
This lesson discusses branching on Go with if and else. The terms in if do not need to be encapsulated, and Go supports the init statement so that the variable can be created and…
14
Go Switch
This lesson discusses switching as a neat way to handle many conditions in Go. Every case doesn't need a break because Go doesn't do an automatic fallthrough, and you can write…
15
Go Loops
This lesson shows that Go has only one loop keyword, which is for. For can be used with three classical parts (init; condition; post), only with condition, or without condition…
16
Go Functions
This lesson discusses declaration and use of functions in Go with the keyword func. A function can accept a parameter and return more than one value, including the value error…
17
Go Struct
This lesson introduces struct, the way Go combines multiple fields of different types into one dataset type called. The struct value is accessed via the (.), and the struct is of…
18
Go Maps
This lesson is about maps, a set of key-value pairs with key types that should be comparable. The map is created with make(map[kunci]value) or directly with literal, and then…