'golang' Tag

  • Implementing non re-entrant functions in Golang

    January 4, 2018

    A non re-entrant function is a function that could only be executing once at any point in time, regardless of how many times it is being invoked and by how many goroutines. This post illustrates blocking non re-entrant functions and yielding non re-entrant functions implementations in golang. A use case A service is polling for […]

  • Observations on the hashicorp/raft library, and notes on RDBMS

    June 20, 2017

    The hashicorp/raft library is a Go library to provide consensus via Raft protocol implementation. It is the underlying library behind Hashicorp's Consul. I've had the opportunity to work with this library a couple projects, namely freno and orchestrator. Here are a few observations on working with this library: TL;DR on Raft: a group communication protocol; […]

  • Forking Golang repositories on GitHub and managing the import path

    November 23, 2015

    Problem: there's an awesome Golang project on GitHub which you want to fork. You want to develop & collaborate on that fork, but the golang import path, in your source code, still references the original path, breaking everything. A couple solutions offered below. First, though, let's get some names. A sample case, the problem at hand There's an […]

Powered by Wordpress and MySQL. Theme by openark.org