5 ms·
I would say "web application backend". It's easy to instantiate a web server with a few lines of code. There is good library and open source support for things
by YZF 2y ago
I would say "web application backend". It's easy to instantiate a web server with a few lines of code. There is good library and open source support for things like database drivers, JSON, YAML, cache management, HTTP, gRPC. Goroutines allow for concurrency (e.g. processing many concurrent HTTP requests) with relatively low overhead.
EDIT: In terms of strengths it's a relatively small/simple language. Good out of the box tooling, e.g. profiling, linting, doc generation, package management, code formatting. Fast compile times. Garbage collected so not a lot of memory management headaches. Strongly types. Performant. (maybe not as easy to squeeze the last cycle out of things as you can with C or C++ but not an unreasonable tradeoff between performance and language runtime/abstractions).
- tugberkk 2y agoCan't we do the same thing with python, flask? Yes, not compiled and strongly typed but it's still easy to instantiate a web server with a few lines of code, no?
- YZF 2y agoIt's going to be a lot less performant, but yes Python has a lot of library support as well and you can create a web basic web server with relatively little code. Go's HTTP stack though is part of the standard library while flask is not (there might be some standard library equivalent though). Some people move to Go from Python for performance reasons (and other reasons).
- deleted 2y ago[deleted]