sync utility for golang