December 2021
Intermediate to advanced
510 pages
11h 20m
English
In this initial version of the goci tool, you’ll define the main structure of your program and then execute the first step of the CI pipeline: building the program. Start by creating a directory called processes/goci for this tool under your book project’s root directory:
| | $ mkdir -p $HOME/pragprog.com/rggo/processes/goci |
| | $ cd $HOME/pragprog.com/rggo/processes/goci |
Initialize a new Go module for this project called goci:
| | $ go mod init pragprog.com/rggo/processes/goci |
| | go: creating new go.mod: module pragprog.com/rggo/processes/goci |
For this tool, you’ll use the run function pattern that you saw in Creating a Basic Markdown Preview Tool. The run function contains the main logic ...
Read now
Unlock full access