add go api
Merge pull request #74 from ideawu/master

add go api