Is golang suitable for web development?
golang is suitable for web development
1. The framework is mature enoughA Survey of 5 Go Web Frameworks.
2. For small projects, you don’t even need a framework, use net/http http - The Go Programming Language,
commonly used libraries are also matureTop - Go Search.
3. Golang’s web backend is much faster than php, ruby, and python even if it is not concurrent
. Using concurrent in golang is really very convenient, very
fast, and the cost of very large web projects golang scale
is low.
4. If you want, golang deployment can be more convenient than python. You can use go get
and http.ServeAndListen()
without nginx and apache.
5. Recompiling file changes is actually not a big problem. See pilu/fresh · GitHub. In fact, you can write your own shell script (you can also write it directly with go, because it itself
It is a system language) monitors file system changes and automatically rebuilds it. Even for C/C projects, this is not a big problem. People don’t use C/C to write web because they are not the best choice for writing web apps.
6. After the code written in golang is compiled, it is better than
scripting language because go compiler
enforces some best practices, so if you are familiar with go or willing Invest time, this is a language worth using. If you are not familiar with it and the project cycle is very tight, it is recommended that you use the language you are most familiar with. Learning Go itself takes time.
Recommended tutorial: "
go language tutorialThe above is the detailed content of Is golang suitable for web development?. For more information, please follow other related articles on the PHP Chinese website!