This code line and still can tell the truth. . I think the purpose of this code is to refer to the normal golang project should how. Main business because we still use C ++, golang aspect I was a novice, an online project how a reasonable division of the design code, read a book or see a small JB open source is not learn, and online golang open source project, in addition to the tall outside the framework of the various components, and the rest is either a toy, or is the tool. . Playing for real project is still relatively small open source to the line (probably I did not find), recommended by various users, this feeling quite good, so I decided to learn next.
The following is the text
------------------------------------------------Dividing line -------------------------------------------------- ------
From the main function under cmd in the Start you can see the entire program is packaged became a cli .. tool used is the "github.com/urfave/cli" lib
The lib good. Different command parameters to perform different functions.
execution start command corresponding process is as follows:
startAction-> new config -> Create a folder corresponding to various -> Connection db table established by models, etc.