Go Tutorial: Mini project: grow one program
Two short steps in the same file — your code carries forward so you feel the project grow.
One program, step by step
Most tutorials reset the editor each time. In this one, **your code stays** when you move on: you extend the same `main` package like a tiny project.
You will set an `age`, pass the step, then add ten years and print again — all in one file.
What you'll learn in this Go mini project: grow one program tutorial
This interactive Go tutorial has 2 hands-on exercises. Estimated time: 8 minutes.
- Set age to 80 — In `main`, declare an integer variable `age` with value `80` using `:=`. Print `age` so the output shows `80`.
- Add 10 years — Keep your existing code. Add 10 to `age` (for example `age = age + 10` or `age += 10`). Print `age` again. Your output s…
Go Mini project: grow one program concepts covered
- One program, step by step