O'Reilly logo
  • Peter Malmgren thinks this is interesting:

So far we’ve created all our code in the main package, and only consumed other packages. Eventually you’re likely to want to split code that fits together as a logical module into its own package. Having code in a separate package means that you can encapsulate all the logic into a single area, as well as hide a lot of the internal workings from other packages, ensuring that your code is being used exactly as intended. In addition, writing code in packages can quite often influence how you design it in the first place, since only the types, variables, functions, and methods that you choose to export are available to the code that calls it.


Cover of Level Up Your Web Apps With Go


so far we’ve created highlights notes and annotations but there still seem to be tags!