Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Skill · Scripting · Write the basics of a Go program

Structure a Go program: functions, methods, interfaces, errors, packages and modules

Write functions with multiple returns and closures, attach methods with the right receiver, decouple with implicitly satisfied interfaces, propagate errors with %w, errors.Is and errors.As, and organise a go.mod module into cmd and internal packages.

Start lesson 1The Scripting domain

Lessons

How to learn it

5 lessons, about ~2 h 20, in program order.

Beyond the lessons

Assess, practise, pass the proof

Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.

Assess yourself

No quiz

No quiz measures it yet: reading it is not enough to confirm it.

Practice

No guided lab

No guided lab practices it yet.

Proof

No proof

Neither a challenge nor a mission with a proof yet.

Around it

Who requires it, who teaches it

Required by

No published job requires it yet.

Taught by

Same block · Write the basics of a Go program