Go katas are small programs meant to show and teach Go programming techniques. To understand and remember these techniques install the gokatas CLI tool
go install github.com/gokatas/gokatas@latest
and repeatedly do this simple practice cycle 🥋:
- Choose a kata
gokatas -sortby lines -wide
git clone https://github.com/gokatas/<kata>.git
cd <kata>
- Read the kata and try to understand it
code .
- Delete (some of) the kata and try to write it back
git diff
- Track your progress to stay motivated
gokatas -done <kata> -sortby last -report
It's important to practice regularly. Start by taking baby steps. After some time it will require much less will power to practice. And your programming moves will start looking simpler and smoother.