bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Go

Go

Go Tutorial

Go Tutorial focused on Go Introduction and related concepts.

Lesson 1

Go Tutorial

Go is a popular programming language.

Read lesson →Loading…
Lesson 2

Go Introduction

- 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 effici…

Read lesson →Loading…
Lesson 3

Go Getting Started

To start using Go, you need two things:

Read lesson →Loading…
Lesson 4

Go Syntax

A Go file consists of the following parts:

Read lesson →Loading…
Lesson 5

Go Comments

A comment is a text that is ignored upon execution.

Read lesson →Loading…
Lesson 6

Go Variables

Variables are containers for storing data values.

Read lesson →Loading…
Lesson 7

Go Multiple Variable Declaration

In Go, it is possible to declare multiple variables on the same line.

Read lesson →Loading…
Lesson 8

Go Variable Naming Rules

A variable can have a short name (like x and y) or a more descriptive name (age, price, carname, etc.).

Read lesson →Loading…
Lesson 9

Go Constants

If a variable should have a fixed value that cannot be changed, you can use the const keyword.

Read lesson →Loading…
Lesson 10

Go Output Functions

Go has three functions to output text:

Read lesson →Loading…
Lesson 11

Go Formatting Verbs

Go offers several formatting verbs that can be used with the Printf() function.

Read lesson →Loading…
Lesson 12

Go Data Types

Data type is an important concept in programming. Data type specifies the size and type of variable values.

Read lesson →Loading…
Lesson 13

Go Boolean Data Type

A boolean data type is declared with the bool keyword and can only take the values true or false .

Read lesson →Loading…
Lesson 14

Go Integer Data Types

Integer data types are used to store a whole number without decimals, like 35, -50, or 1345000.

Read lesson →Loading…
Lesson 15

Go Float Data Types

The float data types are used to store positive and negative numbers with a decimal point, like 35.3, -2.34, or 3597.34987.

Read lesson →Loading…
Lesson 16

Go String Data Type

The string data type is used to store a sequence of characters (text). String values must be surrounded by double quotes:

Read lesson →Loading…
Lesson 17

Go Arrays

Arrays are used to store multiple values of the same type in a single variable, instead of declaring separate variables for each value.

Read lesson →Loading…
Lesson 18

Go Slices

Slices are similar to arrays, but are more powerful and flexible.

Read lesson →Loading…
Lesson 19

Go Access, Change, Append and Copy Slices

You can access a specific slice element by referring to the index number.

Read lesson →Loading…
Lesson 20

Go Operators

Operators are used to perform operations on variables and values.

Read lesson →Loading…
Lesson 21

Go Arithmetic Operators

Arithmetic operators are used to perform common mathematical operations.

Read lesson →Loading…
Lesson 22

Go Assignment Operators

Assignment operators are used to assign values to variables.

Read lesson →Loading…
Lesson 23

Go Comparison Operators

Comparison operators are used to compare two values.

Read lesson →Loading…
Lesson 24

Go Logical Operators

Logical operators are used to determine the logic between variables or values:

Read lesson →Loading…
Lesson 25

Go Bitwise Operators

Bitwise operators are used on (binary) numbers:

Read lesson →Loading…
Lesson 26

Go Conditions

Conditional statements are used to perform different actions based on different conditions.

Read lesson →Loading…
Lesson 27

Go if statement

Use the if statement to specify a block of Go code to be executed if a condition is true .

Read lesson →Loading…
Lesson 28

Go if else Statement

Use the else statement to specify a block of code to be executed if the condition is false .

Read lesson →Loading…
Lesson 29

Go else if Statement

Use the else if statement to specify a new condition if the first condition is false .

Read lesson →Loading…
Lesson 30

Go Nested if Statement

You can have if statements inside if statements, this is called a nested if.

Read lesson →Loading…
Lesson 31

Go switch Statement

Use the switch statement to select one of many code blocks to be executed.

Read lesson →Loading…
Lesson 32

Go Multi-case switch Statement

It is possible to have multiple values for each case in the switch statement:

Read lesson →Loading…
Lesson 33

Go For Loops

The for loop loops through a block of code a specified number of times.

Read lesson →Loading…
Lesson 34

Go Functions

A function is a block of statements that can be used repeatedly in a program.

Read lesson →Loading…
Lesson 35

Go Function Parameters and Arguments

Information can be passed to functions as a parameter. Parameters act as variables inside the function.

Read lesson →Loading…
Lesson 36

Go Function Returns

If you want the function to return a value, you need to define the data type of the return value (such as int , string , etc), and also use the return keyword inside the function:

Read lesson →Loading…
Lesson 37

Go Recursion Functions

Go accepts recursion functions. A function is recursive if it calls itself and reaches a stop condition.

Read lesson →Loading…
Lesson 38

Go Struct

A struct (short for structure) is used to create a collection of members of different data types, into a single variable.

Read lesson →Loading…
Lesson 39

Go Maps

Maps are used to store data values in key:value pairs.

Read lesson →Loading…