Go language gin framework to write restful API, how to organize file directories, can you give some reference?

how does the gin framework of go language write restful API, to organize file directories? can you give me some reference?
searched in github, Jianshu, Zhihu, medium, etc.,
is either too simple, a main.go is over,
or multifarious, do not see the idea of organizing file directories.

question:
ask the boss to give some examples to illustrate the idea of file organization. The so-called train of thought is to explain where is the api, where is the route, where is the model, and where is the configuration file. Wait, what things should be separated, what things should be put together, and so on.

Sep.03,2021

can refer to this. The standard directory of the go project
https://github.com/golang-sta.

Menu