Theory and Practice
About Archives Categories Tags Authors 中文 ไทย
  1. Tags
  2. Goroutine

[Golang] Use Defer to Wait For Goroutines to Finish

May 16, 2018

Use Go defer statement to elegantly wait for all goroutines to finish.

 read more »

[Golang] Pass Reference to Goroutine While range Slice

February 06, 2018

Caveat: Passing reference/pointer to goroutine function while range slice in Go.

 read more »

XMLHttpRequest (XHR) in Go

December 14, 2017

Send data to servers or retrieve data from servers on browsers - Use XMLHttpRequest method in Go/GopherJS.

 read more »

[Golang] Caveats of GopherJS Development

February 07, 2016

Fix runtime error via goroutine in Go code compiled to JavaScript by GopherJS.

 read more »

[Golang] Online Snake Game by GopherJS

January 13, 2016

Online snake game using Go programming language, compiled to JavaScript by GopherJS. (GopherJS DOM example)

 read more »

[Golang] Wait For Goroutines to Finish

March 23, 2015 (Updated: May 16, 2018)

Use channels to wait for all goroutines to finish

 read more »

[Golang] Capture and Handle Ctrl+C Event

March 11, 2015

Run cleanup function when receiving ^C signal.

 read more »

[Golang] Goroutines Poll Web Feeds

March 10, 2015

Poll RSS/ATOM feeds with Goroutines

 read more »
Powered by Github Pages, Pelican, pyScss.