/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

livesys.se
| | 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...
2.5 parsecs

Travel
| |
| | infinitedigits.co

A simple way to get MIDI and Golang work together using portmidi.
2.8 parsecs

Travel
| |
| | hjr265.me

I have been meaning to do a few short-form blog posts lately. This blog post is going to be one of them. In Go, on Linux, if you want to know when the terminal window is resized, you can listen for the SIGWINCH signal using the signal.Notify (or the signal.NotifyContext) function. The code will look something like this: 1 2 3 4 5 ch := make(chan os.Signal) signal.Notify(ch, syscall.SIGWINCH) for range ch { // The terminal has been resized.
2.1 parsecs

Travel
| |
| | benhoyt.com

My re-implementation of the code from the official Go tutorial 'Developing a RESTful API with Go and Gin', using only the standard library, adding tests, and fixing issues.
24.0 parsecs

Travel
|