---
title: "Discussion on \"What Go Programming Language does and does not have\" | Hashnode"
description: "Discussion on \"What Go Programming Language does and does not have\". Go has the benefit of hindsight, and basics are well done: it has a garbage collection, a package system, first class functions, lexical scope, a system call interface and immutable strings in which text are generally encoded in UTF-8. But it has com..."
url: "https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What Go Programming Language does and does not have](https://ap4tt.hashnode.dev/what-go-programming-language-does-and-does-not-have?utm_source=hashnode&utm_medium=feed)

Go has the benefit of hindsight, and basics are well done: it has a garbage collection, a package system, first class functions, lexical scope, a system call interface and immutable strings in which text are generally encoded in UTF-8. But it has com...

Jun 9, 2019 · ap4tt.hashnode.dev  
Read the article

-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#go](https://hashnode.com/tag/go)

## Written by

[Amrit Pandey](https://hashnode.com/@ap4tt)

@ap4tt · Madhya Pradesh, India

  
[View profile](https://hashnode.com/@ap4tt)

Anti-Dogmatic Programmer

Self-taught Programming enthusiast. Curiosity to learn new things in tech makes me happy. I am probably not your usual &quot;yes-boss&quot; developer.

## Responses 6

Markdown supported · ⌘↵ to post

[Amrit Pandey](https://hashnode.com/@ap4tt)

[Jun 18, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5d08f398a3192713414bbf74)

Go Language learning resources.

First you should take the language tour: [tour.golang.org](https://tour.golang.org/)

Then, you should visit:

-   [golang.org/doc/code.html](https://golang.org/doc/code.html) to learn how to organize your Go workspace
-   [golang.org/doc/effective\_go.html](https://golang.org/doc/effective_go.html) be more effective at writing Go
-   [golang.org/ref/spec](https://golang.org/ref/spec) learn more about the language itself
-   [golang.org/doc](https://golang.org/doc/#articles) a lot more reading material

There are some awesome websites as well:

-   [blog.gopheracademy.com](https://blog.gopheracademy.com/) great resources for Gophers in general
-   [gotime.fm](http://gotime.fm/) awesome weekly podcast of Go awesomeness
-   [gobyexample.com](https://gobyexample.com/) examples of how to do things in Go
-   [go-database-sql.org](http://go-database-sql.org/) how to use SQL databases in Go
-   [dmitri.shuralyov.com/idiomatic-go](https://dmitri.shuralyov.com/idiomatic-go) tips on how to write more idiomatic Go code
-   [divan.github.io/posts/avoid\_gotchas](https://divan.github.io/posts/avoid_gotchas) will help you avoid gotchas in Go
-   [golangbot.com](https://golangbot.com/) tutorials to help you get started in Go

There's also an exhaustive list of videos [gophervids.appspot.com](http://gophervids.appspot.com/) related to Go from various authors.

If you prefer books, you can try these:

-   [golangbootcamp.com/book](http://www.golangbootcamp.com/book)
-   [gopl.io](http://gopl.io/)
-   [manning.com/books/go-in-action](https://www.manning.com/books/go-in-action)

If you want to learn how to organize your Go project, make sure to read: [medium.com/@benbjohnson/standard-package-layout-7…](https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1#.ds38va3pp.) Once you are accustomed to the language and syntax, you can read this series of articles for a walkthrough the various standard library packages: [medium.com/go-walkthrough.](https://medium.com/go-walkthrough.)

Finally, [github.com/golang/go/wiki](https://github.com/golang/go/wiki#learning-more-about-go) will give a list of even more resources to learn Go.

[Fahmi Akbar Wildana](https://hashnode.com/@DrSensor)

[Jun 10, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfe4597d7a5ec773ed2084e)

I wonder if in the future it's possible to incorporate GraphQL syntax in Golang 🤔 (or at least import GQL schema)

[Mark](https://hashnode.com/@mverleg)

[Jun 10, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfe0fe0d7a5ec773ed20493)

Interesting overview!

---

While having a garbage collector is kind of standard, the Go one is a bit special.

Most languages with GC, like Java, are focused on reference types. But Go could I think be fairly described as value-oriented, like C.

That is, rather than most variables being pointers to separate objects, they are stored directly inside eachother and on the stack by default.

This [apparently](https://blog.golang.org/ismmkeynote) had some interesting effects on the design of the garbage collector.

---

Another special thing, and arguably one of the most famous, are the goroutines.

Many languages now use async/await for IO and real threads for parallel computations. There are no multiple stacks, and context switches are explicit (or kinda in Kotlin).

Erlang has a somewhat similar system, also with growable stacks. But they behave more like processes (no data sharing), and they are pre-emptive (they can switch at any time).

Java and Rust abandoned green threads, which would be kind of similar. I'm not sure which other languages have something like it built-in.

So I think Goroutines are kind of special. They only switch at specific points (when blocking waiting for IO or channels, usually) which is like async/await. This is often more efficient than pre-emptive.

But unlike async/await, there are no async or await keywords. If your function can yield execution, the callers won't know about that. Which related to their implementation as actual stacks, instead of just compiler magic. On the one hand, it means less syntax is needed (marking all functions as async), but it also means you don't really know when you're going to be interrupted and your state changes, just like real threads.

---

That said, to my taste Go is too spartan. I get how it follows from their goals, but I think the simplicity is mostly nice in the first half year. After that you'd be happy to have generics and other features that help you write more reusable and reliable code.

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Jun 10, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfe0fe0d7a5ec773ed20493#reply-5cfe53bd1043fd5b5650cd35)

Talking about the garbage collector, this is a good opportunity to share this great post from the who improved Golang’s GC over the years. Really worth reading if you’re interested in learning more about how it works under the hood [blog.golang.org/ismmkeynote](https://blog.golang.org/ismmkeynote)

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Jun 9, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfd7ddd5007d6f449737d59)

Nice post! One thing though: your post is 100% feature oriented. And there’s one «feature» of Go which I don’t find here which is - in my opinion - one of its greatest strength, although it’s a non-functional one: When the design - and keep designing - the language designers were/are very careful to not introduce duplicated functionalities (i.e. they try to only provide one way to do one thing). This is why Go is simple: since there’s only one way to do things, all Go code looks pretty similar (and this is also enforced with other great Golang strengths: the tooling and gofmt)

When you work in a team, having something super consistent makes it much easier to maintain. The cognitive load when you look at the code from someone else is hardly greater than looking at your own code. When you need to develop stuff and make sure it will be developed, maintain and debugged by many developers, this very strong consistency has a huge value!

[Mark](https://hashnode.com/@mverleg)

[Jun 10, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfd7ddd5007d6f449737d59#reply-5cfe0700829fa7eb730385d6)

It's interesting that this is [a goal](https://www.python.org/dev/peps/pep-0020/) of Python:

> There should be one-- and preferably only one --obvious way to do it.

But Go was probably more successful at it.

[Joseph S Stevens](https://hashnode.com/@josephscottstevens)

[Jun 9, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfd789a9287173848f3a510)

Nice article! As someone who has done object orientation for a decade now, I really can say, OO is needlessly complex. Go is quite simple, and simple is good.

[Sandeep Panda](https://hashnode.com/@sandeep)

[Jun 9, 2019](https://hashnode.com/posts/what-go-programming-language-does-and-does-not-have/5cfd396dd1637b9c0c507d04/comment/5cfd6a0f08668ab234f42ba3)

Interesting post! Have bookmarked it. :-)

Could you tag it with Golang so that more people see this in their feeds? The current tags seem incorrect.

![Screenshot 2019-06-10 at 1.48.54 AM.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1560111582350/2X2VG0a_E.png)

Please choose "Go Language" tag from the above dropdown in the edit page. :)
