/explore
|
You are here |
www.integralist.co.uk | ||
| | | | |
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. |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
lukesingham.com
These are my summary notes of 'A Tour of Go' - which is meant for people who are familiar with programming to have a quick tour |
|
| | | | | ||
| | | | |
aarol.dev
Compared to Javascript, Python and other single threaded languages, Go takes a very different approach to I was having difficulties understanding how concurrent ... |
|
| | | |||