/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

golangbot.com
| | nindalf.com

This article explains the differences between goroutines and threads and how goroutines work in Go programming language.
2.6 parsecs

Travel
| |
| | mfbmina.dev

One of the best Go features is how easy we can use concurrency. The language gives us goroutines, which are like lightweight threads managed by the Go runtime. It help us to run several functions at the same instant and is very helpful if you wish to improve the performance of your application. Using this feature is easy as adding the go keyword before any function call. This will make the function run concurrently. To make it simpler, let's show you the code. Here I've written the SleepSort algorithm, w...
0.9 parsecs

Travel
| |
| | pliutau.com

Software Engineering Lead with a passion for APIs, Web, Cloud, Microservices, DevOps, Kubernetes etc. Engineering Lead at solsten.io
2.3 parsecs

Travel
| |
| | hjr265.me

Concurrency is one of the central features of Go. And, to build concurrent programs in Go, you need goroutines. A goroutine is like a thread, but lighter. Much lighter. And, like any other built-in feature of Go, using it is dead simple: 1 2 3 4 5 6 7 package main func main() { go func() { println("Hello World") // Print "Hello World" from a different goroutine. }() } Wait. That didn't print anything.
13.8 parsecs

Travel
|