In previous lesson we put all of out code in one file and one package, main
. However, aside from very small projects, this won’t scale very well, and does make your code very reusable apart from copying and pasting. We have already seen the usefulness of packages through using the fmt
and errors
packages. So let’s look at how to create our own. You can find the code for today’s lesson here. There is more than one file this time!