In the GoLang we use interfaces everywhere. But we also should understand the rules and idioms how GoLang interfaces works. Let’s read about them 😉; part one:
#development #basics
https://medium.com/golangspec/interfaces-in-go-part-i-4ae53a97479c
#development #basics
https://medium.com/golangspec/interfaces-in-go-part-i-4ae53a97479c
Medium
Interfaces in Go (part I)
Interfaces make the code more flexible, scalable and it’s a way to achieve polymorphism in Golang. Instead of requiring a particular type…
Everybody use dependencies and third-party packages but what is the best way to use it? GopherAcademy helps to understand best practice for the vendor folder organization. Of course, code examples and theory points are included 🙂
#development #basics #manual
https://blog.gopheracademy.com/advent-2015/vendor-folder/
#development #basics #manual
https://blog.gopheracademy.com/advent-2015/vendor-folder/
Gopheracademy
Understanding and using the vendor folder
With the release of Go 1.5, there is a new way the go tool can discover go packages. This method is off by default and the surrounding tools, such as goimports, do not understand that folder layout.
New post about concurrency problems and solutions. Main points with examples:
- Blocking Channels;
- Blocking Channels Buffer;
- Wait Group (run multiple async tasks and wait for them execution);
#development #basics #algorithms
https://hackernoon.com/concurrency-how-it-can-help-you-and-how-you-can-use-golang-to-reach-it-easily-ae3e070b3d2c
- Blocking Channels;
- Blocking Channels Buffer;
- Wait Group (run multiple async tasks and wait for them execution);
#development #basics #algorithms
https://hackernoon.com/concurrency-how-it-can-help-you-and-how-you-can-use-golang-to-reach-it-easily-ae3e070b3d2c
Hackernoon
Concurrency: how it can help you and how you can use GOLANG to reach it easily
Do you know the difference between “go build” and “go install” commands? Now I sure you will 🙂
#development #basics
https://pocketgophers.com/go-install-vs-go-build/
#development #basics
https://pocketgophers.com/go-install-vs-go-build/
Good and simple short article about the benchmark writing in GoLang. Code examples are available 😉
#development #benchmarks #testing #basics
https://mycodesmells.com/post/testing-go-with-benchmarks
#development #benchmarks #testing #basics
https://mycodesmells.com/post/testing-go-with-benchmarks
Mycodesmells
Testing Go with Benchmarks - My Code Smells!
Every now and the you face some kind of a problem in your application and come up with two (or more) solutions. You then wonder which is more efficient, which way should you go? If your problem happens to occur in a Golang application, Benchmarks come to…
Simple and good for understanding tutorial about Golang’s channels. It can help beginners to meet with them and learn to use it without problems 🙂
Keys of the article:
- What is a channel, goals, and functions of it;
- Deadlocks and other problems;
- Channel ranging and closing. When, why and how?
#development #basics #language
https://guzalexander.com/2013/12/06/golang-channels-tutorial.html
Keys of the article:
- What is a channel, goals, and functions of it;
- Deadlocks and other problems;
- Channel ranging and closing. When, why and how?
#development #basics #language
https://guzalexander.com/2013/12/06/golang-channels-tutorial.html
One of popularly questions is: How to handle errors correctly? GoLang best practices on the Medium will help with it. Of course, code examples are included 🙂
#development #practice #basics
https://medium.com/@sebdah/go-best-practices-error-handling-2d15e1f0c5ee?source=linkShare-b636419a57de-1520408380
#development #practice #basics
https://medium.com/@sebdah/go-best-practices-error-handling-2d15e1f0c5ee?source=linkShare-b636419a57de-1520408380
Medium
Go Best Practices — Error handling
This is the first article in a series of lessons I’ve learnt over the couple years I’ve worked with Go in production. We are running a good…
Top GoLang features that you don’t know or don’t hear so much 🙂 If you want some main points of this article they are here:
- GoDoc;
- Static code analysis;
- Built-in testing and profiling framework;
- Race condition detection;
- Learning curve;
- Reflection;
- Opinionatedness;
- Culture.
#manual #development #basics #language
https://medium.freecodecamp.org/here-are-some-amazing-advantages-of-go-that-you-dont-hear-much-about-1af99de3b23a?source=linkShare-b636419a57de-1520768034
- GoDoc;
- Static code analysis;
- Built-in testing and profiling framework;
- Race condition detection;
- Learning curve;
- Reflection;
- Opinionatedness;
- Culture.
#manual #development #basics #language
https://medium.freecodecamp.org/here-are-some-amazing-advantages-of-go-that-you-dont-hear-much-about-1af99de3b23a?source=linkShare-b636419a57de-1520768034
freeCodeCamp
Here are some amazing advantages of Go that you don’t hear much about
In this article, I discuss why you should give Go a chance and where to start.
How to work and use field tags in GoLang? Inside of this article Michał Łowicki from Opera company explains basics and features of tagging; include examples and best practices 🙂
#development #practice #basics
https://medium.com/golangspec/tags-in-golang-3e5db0b8ef3e
#development #practice #basics
https://medium.com/golangspec/tags-in-golang-3e5db0b8ef3e
Medium
Tags in Golang
Declaration of struct fields can be enriched by string literal placed afterwards — tag. Tags add meta information used either by current…
Hi 👋 there! This article is meant for those who’re new to Go and want to start learning about Go’s concurrency primitives: go routines and channels.
#development #manual #basics
https://medium.com/@trevor4e/learning-gos-concurrency-through-illustrations-8c4aff603b3
#development #manual #basics
https://medium.com/@trevor4e/learning-gos-concurrency-through-illustrations-8c4aff603b3
Medium
Learning Go’s Concurrency Through Illustrations
You’ve most likely heard of Go in one way or another. It’s been increasing in popularity, and for good reason. Go is fast, simple, and has…