Skip to content
RapidFinger — free online typing test

Typing tests

← All programming languages

Go Coding Practice

Practice typing real code syntax, including brackets, punctuation, and indentation. Snippets are for typing practice only and are never executed.

Slices, loops, and conditions

Type the code exactly. Tab inserts four spaces. Code is not executed.

Choose another snippet

Progress: 0%

Current mismatches: 0

package main

import "fmt"

func main() {
    numbers := []int{3, 8, 12, 5, 10}

    for _, number := range numbers {
        if number%2 == 0 {
            fmt.Println(number)
        }
    }
}

Type the code exactly, including spaces and indentation.