This is a created article in which the information may have evolved or changed.
Today boss business trip, to colleagues told me that the company needs to develop a background server through Golang, but currently need to choose Open Source Go-socket.io as WEBAPI or choose Beego Framework as the company's next development Webapi.
Corresponding to just learn Golang basic knowledge for one weeks and have not touched the go web I, now I want to choose the company next to the Go web framework, now I really do not know how to choose. It's a surprise that small companies do have a lot of different things than big ones, but it feels like small companies can actually improve themselves faster. No matter how, first build Go-socket.io and Beego environment, by reading the online information, the morning has successfully built the Go-socket.io and Beego framework of the environment. However, the new Beego project through "bee" encountered a small difficulty, has now been resolved, so record it.
"Reference Document"
However, just by "Go get Github.com/beego/bee" just download and install bee, so when executing "bee New project Name" The Times Wrong said Bee command was not found. The problem is that the running program "Bee.exe" is not loaded into the environment variable, so the error will be made. Simply add the path () of the "Bee.exe" to the environment variable or copy the "Bee.exe" to a directory that has been added to the environment variable.
Installation manual for "Bee" under Windows:
1. Execute with cmd or git bash: Go get Github.com/beego/bee
After a while, the "Github.com/beego/bee" file can be seen under the SRC directory under the Gopath path, and there is "Bee.exe" in the src sibling bin.
2. Add the path of "Bee.exe" to the environment variable or copy "Bee.exe" to a directory that has been added to the environment variable
3. Generate the framework engineering code from the Bee tool: Bee new project name (e.g. Hello)