Go logo


A cross-platform Go IDE with extended support for JavaScript, TypeScript, and databases

DevEco GoLand News

The state of Go

Read this post in other languages:

The Go language is high up on the list of popular programming languages used today. We already know that its enthusiastic, fun, and welcoming community of users like it for its speed and effectiveness, but we wanted to find out a bit more. We have taken a deeper look into the information available on Go to uncover more facts. Our resident Go expert, Florin Pățan, Developer Advocate for GoLand, has been brought in to provide his take on the findings to discover the state of Go.


~1.1 million Go devs

Overall, there are about 1,1 million professional Go developers who use Go as a primary language. But that number is possibly closer to ~2.7 million if we include professional developers who mainly use other programming languages but also do a bit of Go on the side.

In terms of global distribution, the largest number of Go developers live in Asia and compose about 570 thousand developers using Go as a primary language.

Expert analysis

This is what I’d expect for the regions that develop Go. Asia is high up there in terms of the numbers of Go users as I think a large number of the developers there are from huge companies such as Tencent, Alibaba, and Huawei. These companies have lots of developers in general.

Where specifically

The graph below shows the distribution of developers in each country we surveyed in the Developer Ecosystem survey 2020 who use Go as a primary language (respondents were able to choose up to 3 primary languages). China has the highest concentration, with 16% of Chinese developers writing in Go.

Expert analysis

I am not surprised to see China at the top of the list. I would have expected to see Russia second and the United States a bit higher, perhaps in the top 5.

China’s place at the top of the list is probably just due the sheer number of developers they have. And a lot of the companies that I know, for example, PingCAP, Tencent, and Huawei all have a lot of developers to support them and build internal tools, infrastructure, and backend services, which are combined with microservices. That seems to be key.

I know that in Russia the Go communities are really awesome, so it’s no wonder Go is a popular language there. I am curious about Japan and Ukraine as I didn’t expect that they would be quite so high up, and I’d expect Germany and India to be a bit higher. I remember back four or five years ago when I was in Berlin that Go was used in pretty much every startup that I knew.

Industry insights

According to the Developer Ecosystem Survey 2020, Go is among the top 10 primary languages of professional developers, with a share of 7%.

Expert analysis

I think Go is always growing. People don’t tend to start off with Go as their first programming language but instead usually migrate to Go from other languages such as PHP and Ruby, but mainly from C++ and C#, from what I know.

The advantages of Go over PHP would be the type safety, since Go is a statically typed language, whereas PHP is dynamic. It means that the compiler does most of the work for you in terms of making sure that the code you wrote will compile and work without having problems at runtime. The advantage Go has over C++ is simplicity. In Go, it’s all pretty straightforward.

In general, the thing with Go is that it has a lot of speed built in, both when writing the code and at runtime. In general, with Go you’d get maybe 5-10 times the performance without having to do any special optimizations, and that’s an important productivity advantage for companies. It’s also a simple language, it’s easy to pick up, and it’s easy to replace microservices in existing projects.

A lot of the IT infrastructure tools like Kubernetes, Docker, and Vault – to name a few of the big ones – are built using Go. So, while there are a lot of companies that work with Java, they would also have a team that does Go, especially for maintenance and patching of such projects. That’s probably one of the other reasons the adoption keeps increasing; the more that technology is used in common infrastructure and deployments, the more Go will grow. So I think more and more people will start using Go in the next few years and we will see Go at maybe 15-20%, especially considering the question from the Developer Ecosystem survey “”Do you plan to adopt / migrate to other languages in the next 12 months? If so, to which ones?” where 13% of respondents answered Go.

Type of software developed with Go

Web Services are the most popular area where Go is used, with a share of 36% according to the results from the Developer Ecosystem survey 2020.

Expert analysis

For web services, I think the top task is creating API servers that are fairly fast. They don’t necessarily need a framework, so you can get up and running quickly with Go.

I don’t expect that this graph will change too much in the future. I do expect to see web services getting more share just because it’s simple to get started in it with Go.

For “Utilities”, I see a similar story as it’s fairly easy to write a quick app that lets you process a large volume of data and write small utility apps or one-off tasks that need a lot of power. It also makes sense to see the IT infrastructure there. The more people that adopt Docker and Kubernetes, the more people that will come to Go, just because they are both written in Go. Any kind of DevOps work can especially benefit from Go, as it offers type safety and speed. It’s quite easy to interact with the cloud side of the infrastructure – Google, Amazon, and Azure, among others – as they all have good SDKs. I think we can also expect a bit of a boost in “Libraries / Frameworks” in the next couple of years when generics arrive.

System software – I think this will begin to decline as more people start using something like Rust for system software. And the same for databases. So it’s probably going to be a niche domain in the future somewhere around the 6% mark. Programming tools – I am surprised this is so high on the list, I would be interested to learn what programming tools are being made in Go.

Top industries where Go is used

According to the Developer Ecosystem Survey 2020, Go programmers work mainly in IT Services, followed by Finance and FinTech, Cloud Computing / Platform, and other industries.

Expert analysis

Financing and FinTech. That’s something that I expect to see just because I know there are quite a few banks that have been launched with Go or are using Go extensively for their infrastructure. For example, Monzo, from the UK, built their whole bank using Go. Cloud computing and platforms also makes sense, as it is natural with the kinds of applications that are being written in Go.

Mobile development, that’s unexpected to see. Go doesn’t really have a good mobile development history. If anything, I would expect people to probably do their web services or backends for mobile apps with Go, but that is about it.

There are a few industries I would not expect to see Go usage increasing in anytime soon. For example, anything based on machine learning, because that’s still quite a Python stronghold. There are efforts to make machine learning popular in Go and make it better, however I think that any results are at least a couple of years away.

Go tools

Package Managers

Go Modules is the most popular package manager among Go developers. Its adoption rose from 41% in 2019 to 82% in 2020, according to the Developer Ecosystem Survey 2020.

Expert analysis

I think at some point we’ll probably have to stop asking this question, just because Go Modules is set to become the standard default model and the Go team also wants to deprecate GOPATH. Everything else will probably just be obsolete then.

Go routers

Gorilla / Mux and Standard library have remained the most used Go routers since 2018 according to the Developer Ecosystem surveys carried out in 2020 and 2018.

Expert analysis

The standard library is probably so popular because whenever you go to Reddit, Slack, or any other place, people will usually recommend sticking with the standard library and only using something else if you really want. I use gorilla/mux, just because there is a bit more abstraction on top of the standard library without sacrificing too much performance. It’s also probably because this is one of the closest to the standard library and it makes writing servers easier. Overall this distribution is probably what I would expect to see.

Top 5 web frameworks

The usage of Gin has nearly doubled since 2018, while the rest of the web frameworks have largely remained stable, according to the 2020 and 2018 Developer Ecosystem surveys.

Expert analysis

Gin is likely so popular for web because it’s one of the faster frameworks and also gets good recommendations. It’s also one of the oldest ones. So there’s a lot of material out there, and a lot of users are already using and recommending it.

Testing frameworks

The proportion of devs using built-in testing fell from 64% in 2018 to 44% in 2020 while the usage of other testing frameworks grew slightly.

Expert analysis

The built-in testing is high because the Go standard library has a really good testing library out of the box.

Built-in testing has probably dropped because more people are coming to the language from other languages, like PHP for instance, and they are seeking to replicate the testing habits they already have.

Most discussed Go tools and other languages

Go is often discussed in IT communities, one of which is Stack Overflow. We took data from the Q&A section to find out which tags co-occur with “Go” the most. Among them, there are 23 tools and 2 languages – “MySQL” and “PostgreSQL”. Apart from the tools, there are co-occurrences with other top languages. The vertical axis indicates the total number of occurrences of the tags while the horizontal axis shows mentions of the tags with “Go”.

Expert analysis

I expect JSON to be a problem. It’s not easy to marshal and unmarshal JSON into Go data structures and this is probably why it’s so visible. Structs come up as people coming from other languages usually have a hard time wrapping their head around this, apart from maybe if they come from C++ or C.

Amazon Web Services is where I would expect a lot of questions based on the popularity of AWS itself. It’s more straightforward to develop Go apps for Google App Engine now, which was not always the case, hence why there are so many questions.

All in all, the Go community is a pretty fun and inclusive community to be a part of. Newbies are never pushed away and they are encouraged to ask questions and discover the language. In terms of topics in general, generics and maybe some language improvements, compiler improvements, and so on are discussed most regularly.

Generics particularly as it is one of the most requested features for the language and there are plenty of workloads that would benefit from having this feature.

Is your team curious to try GoLand? Get an extended trial for an unlimited number of users.

Request now!

image description