flock wrapper for go