Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Single repository with versioned folders

Using a single repository with versioned folders requires us to maintain the source code for all supported versions within a single repository. The simplest way to achieve this is to create a folder for each version at the root of the repository and copy all the version-specific files and subpackages inside.

Let's revisit the weather package example from the previous section. Let's assume that we use Git as our VCS and that we host our package on GitHub under the weather-as-a-service account in a repository called weather. The following flowchart illustrates how the folder layout would look using this approach:

Figure 1: Managing multiple versions of a package in a single repository

It is important ...

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

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content