Initializing the Pomodoro Application
Start by creating the directory structure for your Pomodoro application under your book’s root directory:
| $ mkdir -p $HOME/pragprog.com/rggo/interactiveTools/pomo |
| $ cd $HOME/pragprog.com/rggo/interactiveTools/pomo |
Next, initialize the Go module for this project:
| $ cd $HOME/pragprog.com/rggo/interactiveTools/pomo |
| $ go mod init pragprog.com/rggo/interactiveTools/pomo |
| go: creating new go.mod: module pragprog.com/rggo/interactiveTools/pomo |
Let’s start this application by developing the pomodoro package that contains the business logic to create and use the pomodoro timer. By creating a separate package for the business logic, you can test it independently of ...
Get Powerful Command-Line Applications in Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.