Учебный трек

Основы Go

От первой программы до переменных, типов, условий, циклов, строк, срезов, отображений и функций, с задачей после каждой темы.

Уроков: 18 · Задач: 33

1 Первые шаги Уроков: 5

  1. Урок Задач: 2 Hello World and Program Structure Write your first Go program and learn what package main, import and func main do.
  2. Урок Задач: 2 Variables and Constants Declare variables with var and :=, and fixed values with const.
  3. Урок Задач: 2 Data Types Work with int, float64, bool, rune and string, and convert between them.
  4. Урок Задач: 2 Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
  5. Урок Задач: 2 Reading User Input Read a line from the keyboard and turn it into a number safely.

2 Условия Уроков: 2

  1. Урок Задач: 2 Conditions: if and switch Choose what runs with if, else and switch.
  2. Урок Задач: 1 FizzBuzz Solve the classic FizzBuzz problem with a switch.

3 Циклы Уроков: 2

  1. Урок Задач: 2 Loops with for Repeat code with Go's only loop, for, in its four forms.
  2. Урок Задач: 2 Prime Numbers Check whether a number is prime and list the primes up to 30.

4 Строки и текст Уроков: 2

  1. Урок Задач: 2 Strings Join, search, split and slice text with Go strings and the strings package.
  2. Урок Задач: 1 Reverse a String Reverse the characters of a string and the words of a sentence.

5 Коллекции Уроков: 4

  1. Урок Задач: 2 Arrays Store a fixed number of values and see that arrays are copied on assignment.
  2. Урок Задач: 2 Slices Work with growing lists: append, slicing, make, len and cap.
  3. Урок Задач: 2 Maps Store and look up values by key with Go maps.
  4. Урок Задач: 2 Word Frequency Counter Count how often each word appears with a map.

6 Функции Уроков: 2

  1. Урок Задач: 2 Functions and Multiple Return Values Define functions, return more than one value and accept any number of arguments.
  2. Урок Задач: 2 Fibonacci Sequence Generate Fibonacci numbers with a loop and a slice.

7 Объекты и классы Уроков: 1

  1. Урок Задач: 1 Structs Group related values into your own type with named fields.
Продолжить: Основы программирования