Learn to code in small bites
Short lessons, then Go exercises you run and check right in your browser. Nothing to install.
package main
import "fmt"
func main() {
biscuit := 4
for biscuit > 1 {
biscuit--
fmt.Println(biscuit, "left")
}
}3 left 2 left 1 left
How learning works
Read a little
Each lesson covers one small idea, with example code you can try straight away.
Write the code
Starter code is waiting in the editor. Finish it by following the task at the end.
Run, then Submit
Run shows the output. Submit checks your code right in the browser, with no server.
One more bite
The lesson is done and your progress grows. Start the next one whenever you are ready.
5 lesson types across Nibble's courses
The Go course 17 chapters, 97 lessons

A small, fast language for backends, tools and network services. From variables to generics, then two small projects.
Lessons in Variables
- Hello, Gopher!Output exercise
- Declaring VariablesOutput exercise
- Short Variable Declaration
:=Test exercise - Basic Data TypesCode example
- Quiz: VariablesQuiz
Lessons in Constants and Formatting
- ConstantsTest exercise
- Constant Blocks and Untyped ConstantsCode example
- Formatting Output with
fmt.PrintfOutput exercise - Building Strings with
fmt.SprintfTest exercise - Column Width and PaddingTest exercise
- Quiz: Constants and FormattingQuiz
Lessons in Conditionals
- Branching with
ifandelseTest exercise - Logical OperatorsTest exercise
ifwith an Init StatementTest exerciseswitchTest exercise- Tagless
switchandfallthroughTest exercise - Quiz: ConditionalsQuiz
Lessons in Functions
- Parameters and Return ValuesTest exercise
- Multiple Return ValuesTest exercise
- Early Returns and Guard ClausesTest exercise
- Functions as ValuesTest exercise
deferOutput exercise- Quiz: FunctionsQuiz
Lessons in Structs
- Defining StructsTest exercise
- Nested StructsTest exercise
- Anonymous StructsCode example
- Embedded StructsTest exercise
- Methods on StructsTest exercise
- Quiz: StructsQuiz
Lessons in Interfaces
- Getting to Know InterfacesTest exercise
- Satisfying Several InterfacesTest exercise
- Type AssertionsTest exercise
- Type Switches and
anyTest exercise - The
StringerInterfaceOutput exercise - Quiz: InterfacesQuiz
Lessons in Errors
- The
errorInterfaceTest exercise fmt.Errorfand Wrapping ErrorsTest exercise- Custom Error TypesTest exercise
- Panic vs ErrorCode example
- Quiz: ErrorsQuiz
Lessons in Loops
- The
forLoopTest exercise foraswhileTest exercise- Infinite Loops,
break, andcontinueTest exercise rangeover IntegersOutput exercise- Looping over Strings and RunesTest exercise
- Quiz: LoopsQuiz
Lessons in Slices
- Arrays and SlicesTest exercise
make,len,cap, andappendTest exercise- Slicing: Cutting a SliceTest exercise
- Variadic Functions and the
...OperatorTest exercise - 2D Slices and the
slicesPackageTest exercise - Quiz: SlicesQuiz
Lessons in Maps
- Getting to Know MapsTest exercise
- Checking Whether a Key Exists: Comma-okTest exercise
- Iterating over Maps and Key OrderOutput exercise
- Counting FrequenciesTest exercise
- Nested Maps and Maps of StructsTest exercise
- Quiz: MapsQuiz
Lessons in Pointers
- Address and Dereference:
&and*Test exercise - Pass by Value vs Pass by PointerOutput exercise
- Pointer Receivers vs Value ReceiversTest exercise
- Nil PointersTest exercise
- When Should You Use Pointers?Code example
- Quiz: PointersQuiz
Lessons in Packages and Modules
- Packages and ImportsCode example
- Exported vs UnexportedTest exercise
- Modules and the
goCommandReading - Standard Library:
stringsandstrconvTest exercise - Standard Library:
mathandsortTest exercise - Quiz: Packages and ModulesQuiz
Lessons in Channels
- Goroutines and ChannelsTest exercise
- Buffered ChannelsTest exercise
- Close, Range, and Channel DirectionTest exercise
- SelectTest exercise
- WaitGroup and DeadlockTest exercise
- Quiz: ChannelsQuiz
Lessons in Mutexes
- Race ConditionsCode example
- sync.Mutex: Lock and UnlockTest exercise
- Protecting Structs with a MutexTest exercise
- sync.RWMutex: Many Readers, One WriterTest exercise
- sync.Once and Choosing Between a Mutex and a ChannelTest exercise
- Quiz: MutexesQuiz
Lessons in Generics
- Generic FunctionsTest exercise
- The comparable ConstraintTest exercise
- Custom Constraints and cmp.OrderedTest exercise
- Generic TypesTest exercise
- When NOT to Use GenericsCode example
- Quiz: GenericsQuiz
Lessons in Enums
- Enums with const and iotaOutput exercise
- A String Method for EnumsTest exercise
- Validating Enum ValuesTest exercise
- Switching on EnumsTest exercise
- Quiz: EnumsQuiz
Lessons in Projects and Final Review
- Go ProverbsQuiz
- Project: Mini Bank LedgerTest exercise
- Project: Warehouse InventoryTest exercise
- Final Quiz: Reviewing Every ChapterQuiz
Course catalog
2 courses are ready today. The others are in the works, grouped by where you want to end up.

Backend
7 coursesServers, APIs and databases: the part of an app nobody sees.
Mobile and Apple
3 coursesApps for the pocket and the wrist.
Cloud and Networking
4 coursesWhere apps run and the roads their data travels.
Common questions

Is Nibble free?
Yes. Every lesson in every available course is yours to read, run and check without paying a cent.
What do I need to install?
Nothing. The editor and the Go runtime run in your browser, so a laptop, tablet or phone with a modern browser is enough.
Is it for beginners?
Yes. The first chapter starts with your first program and variables. You do not need to have written Go before.
Do I have to log in?
Nope. You can start learning without an account, and your progress and code drafts are saved on this device. Log in only if you want your progress kept in an account, so you can pick up on another laptop, tablet or phone.
What language are the lessons in?
The interface and the lessons are in both English and Indonesian. In the Go course the code keeps its Indonesian names and comments, so you'll see things like nama and harga in the editor; in Problem Solving with Go the code is in English.
When will the other courses arrive?
There are no dates yet. Courses in the catalog are built one at a time, and each opens only when all of its lessons are ready.