Fix compatibility with go1 issue.
Rfi #30.
Merge pull request #30 from cihub/gs_issue_30

Refactoring: sync primitives