Go the web project, need in the main. Go register each routing, everyone needs in the main. Go to add the following the
HTTP. HandleFunc ("/", handleHello)
HTTP. HandleFunc ("/hello, handleHello)
Ever does not need to write each url mapping is in the main. The method to add the code above go or framework,
CodePudding user response:
Use beego framework, this is the domestic use of more go framework, the document is complete, using the native method and a lot of things to their own planning is good,CodePudding user response:
Just contact the go, framework also not familiar with, but how do you feel this kind of circumstance can use interface {} and reflect to solve, use a configuration file or a mapCodePudding user response:
The router divided into modules, shall weCodePudding user response:
Must be good modules, such as special function module, routing module, so why don't they?CodePudding user response:
Group, the module