Skip to Main Content
Level Up Your Web Apps With Go
book

Level Up Your Web Apps With Go

by Mal Curtis
April 2015
Intermediate to advanced content levelIntermediate to advanced
260 pages
5h 17m
English
SitePoint
Content preview from Level Up Your Web Apps With Go

Chapter 10Packaging and Production

In this last chapter we’ll look at two distinct items. First, we’re going to check out how you can make reusable packages to share between projects, or even modularize your code within a single project. Then we’ll look at how to get your code into production, and the various methods for dependency management that the Go community uses.

Creating Packages

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Go: Building Web Applications

Go: Building Web Applications

Nathan Kozyra, Mat Ryer

Publisher Resources

ISBN: 9781457192845Errata Page