Ruta de aprendizaje

Fundamentos de Go

De tu primer programa a variables, tipos, condiciones, bucles, cadenas, slices, maps y funciones, con un reto después de cada tema.

18 lecciones · 33 retos

1 Primeros pasos 5 lecciones

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

2 Decisiones 2 lecciones

  1. Lección 2 retos Conditions: if and switch Choose what runs with if, else and switch.
  2. Lección 1 reto FizzBuzz Solve the classic FizzBuzz problem with a switch.

3 Bucles 2 lecciones

  1. Lección 2 retos Loops with for Repeat code with Go's only loop, for, in its four forms.
  2. Lección 2 retos Prime Numbers Check whether a number is prime and list the primes up to 30.

4 Cadenas y texto 2 lecciones

  1. Lección 2 retos Strings Join, search, split and slice text with Go strings and the strings package.
  2. Lección 1 reto Reverse a String Reverse the characters of a string and the words of a sentence.

5 Colecciones 4 lecciones

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

6 Funciones 2 lecciones

  1. Lección 2 retos Functions and Multiple Return Values Define functions, return more than one value and accept any number of arguments.
  2. Lección 2 retos Fibonacci Sequence Generate Fibonacci numbers with a loop and a slice.

7 Objetos y clases 1 lección

  1. Lección 1 reto Structs Group related values into your own type with named fields.
Continúa con: Fundamentos de programación