Case in point: The "singleton pattern in Go" post on the front page of HN. Broken. http://marcio.io/2015/07/singleton-pattern-in-go/ …
@mcastilho Cool :) You can fix it by just using atomic loads of an initialized like Dropbox' library does, but sync.Once is easier
-
-
@pcwalton@mcastilho sync.Once is considered better style than using sync/atomic. It has the fast path: http://golang.org/src/sync/once.go#L36 …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.