- Exécuteurs
-
Apprendre
Apprendre Python Exemples exécutables, NumPy, pandas et plus Apprendre l'IARéseaux de neurones, ML et LLM de zéro Apprendre le C et le C++ Pointeurs, mémoire, STL et C++ moderne Apprendre le C#Bases, POO, LINQ, async et exercices .NET Apprendre MatplotlibCourbes, barres, nuages de points et camemberts avec visualiseurs Apprendre RustOwnership, traits, gestion des erreurs et threads Apprendre GoSlices, interfaces, goroutines et channels Algorithmes Python Recherche, tri, récursivité et visualisations O(n) Algorithmes C et C++ Comparer les implémentations en C et C++ Programmation pour enfants Apprends à coder en jouant !
- DéfisNouveau
- EnseignantsNouveau
- Mises à Jour
- Offrez-moi un café
Les bases de Go
De votre premier programme aux variables, types, conditions, boucles, chaînes, slices, maps et fonctions, avec un défi après chaque sujet.
1 Premiers pas 5 leçons
- Leçon 2 défis Hello World and Program Structure Write your first Go program and learn what package main, import and func main do.
- Leçon 2 défis Variables and Constants Declare variables with var and :=, and fixed values with const.
- Leçon 2 défis Data Types Work with int, float64, bool, rune and string, and convert between them.
- Leçon 2 défis Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
- Leçon 2 défis Reading User Input Read a line from the keyboard and turn it into a number safely.
2 Conditions 2 leçons
- Leçon 2 défis Conditions: if and switch Choose what runs with if, else and switch.
- Leçon 1 défi FizzBuzz Solve the classic FizzBuzz problem with a switch.
3 Boucles 2 leçons
- Leçon 2 défis Loops with for Repeat code with Go's only loop, for, in its four forms.
- Leçon 2 défis Prime Numbers Check whether a number is prime and list the primes up to 30.
4 Chaînes et texte 2 leçons
- Leçon 2 défis Strings Join, search, split and slice text with Go strings and the strings package.
- Leçon 1 défi Reverse a String Reverse the characters of a string and the words of a sentence.
5 Collections 4 leçons
- Leçon 2 défis Arrays Store a fixed number of values and see that arrays are copied on assignment.
- Leçon 2 défis Slices Work with growing lists: append, slicing, make, len and cap.
- Leçon 2 défis Maps Store and look up values by key with Go maps.
- Leçon 2 défis Word Frequency Counter Count how often each word appears with a map.
6 Fonctions 2 leçons
- Leçon 2 défis Functions and Multiple Return Values Define functions, return more than one value and accept any number of arguments.
- Leçon 2 défis Fibonacci Sequence Generate Fibonacci numbers with a loop and a slice.