Defining the components
The following is the folder structure for our audio metadata CLI. The main folders in this structure were described in the last chapter. Here, we will go into further detail on what each folder contains, and the files and code that exist within them, in order from top to bottom:
|--cmd |----api |----cli |------command |--extractors |----tags |----transcript |--internal |----interfaces |--models |--services |----metadata |--storage |--vendor
cmd/
As previously mentioned in Chapter 2, Structuring Go Code for CLI Applications in the Commonly used program layouts for robust applications section, the cmd
folder is the main entry point for the different applications of the project.
cmd/api/
The main.go...