Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

Last reviewed May 28, 2026 Content v20260528
Track mode
server_compiled
Means
Compiled runner
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Playground workflow: the syntax, patterns, and safety habits you need before advancing in Go.

Coroutines replace callback hell on Android and in Ktor—structured concurrency is interview-critical.

You will apply Playground workflow in contexts like: Kubernetes ecosystem tools, cloud APIs, and CLI utilities.

Write Go in main.go with package main and func main(), click Run on server—the dev runner runs go run main.go; use fmt.Println for output (requires Go toolchain; LEARNING_RUNNER_ENABLED=true). Also use package main, func main(), and fmt.Println; exported names start with a capital letter.

At the start of the track—complete before lessons that assume you understand the compiled playground.

Get the most from each lesson's compiled editor—the same habits that transfer to VS Code, GoLand, and CI running go test.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to compile with go run and execute.
  3. Use fmt.Println and fmt.Printf for debug output.
  4. Change one idea at a time; read compiler errors from top to bottom.

What the runner can and cannot do

  • Can — single-file package main with the standard library
  • Needs local setup — multi-module workspaces, long-running HTTP servers, Kubernetes clients

Review Python, Java, and Rust for comparison context.

Important interview questions and answers

  1. Q: What package prints to stdout in Go lessons?
    A: fmtfmt.Println and fmt.Printf.
  2. Q: What is the entry point of a Go program?
    A: func main() in package main.

Self-check

  1. What package provides Println?
  2. What is the first step when the compiler rejects your code?

Challenge

First compile and run

  1. Click Run with the default code.
  2. Confirm output appears in the terminal.
  3. Add a second fmt.Println with your name.

Done when: the terminal shows the default message and your custom line.

Challenge

Verify go run output

  1. Run the default program.
  2. Confirm output in the terminal.
  3. Add a deliberate syntax error and read the compiler message.
  4. Fix and run again.

Done when: you see compiler errors when appropriate and clean output after fixing.

Interview prep

What runs code in the playground?

go run compiles and executes a single main.go with package main and func main().

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Compile error read?
  • package main rule?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump