{"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0","forks_url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/forks","commits_url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/commits","id":"0648fddec0ae2f61bb877732b33679a0","node_id":"MDQ6R2lzdDA2NDhmZGRlYzBhZTJmNjFiYjg3NzczMmIzMzY3OWEw","git_pull_url":"https://gist.github.com/0648fddec0ae2f61bb877732b33679a0.git","git_push_url":"https://gist.github.com/0648fddec0ae2f61bb877732b33679a0.git","html_url":"https://gist.github.com/michaellihs/0648fddec0ae2f61bb877732b33679a0","files":{"go-cheatsheet.md":{"filename":"go-cheatsheet.md","type":"text/markdown","language":"Markdown","raw_url":"https://gist.githubusercontent.com/michaellihs/0648fddec0ae2f61bb877732b33679a0/raw/e706d597e05e537bd2608037ac605f15562cb29e/go-cheatsheet.md","size":1620,"truncated":false,"content":"Go Setup\n========\n\nPATH and Env Vars\n-----------------\n\nWithin your `.profile`\n\n     export PATH=$PATH:/usr/local/go/bin      # add go binaries to PATH\n     export GOPATH=~/Workspace/go             # set root of all your go projects\n     export GOBIN=$GOPATH/bin                 # add binaries compiled from your projects\n     export PATH=$PATH:$GOBIN                 # add your own binaries to PATH\n\n`$GOROOT` defaults to `/usr/local/go` - if that's not the case (i.e. you installed go to some different location), set the `$GOROOT` directory as well.\n\nGo Resources\n============\n\nSyntax and Control Structs\n--------------------------\n\n* https://andrey.nering.com.br/2016/constants-and-enums-in-go-lang/\n\nTesting\n-------\n\n* [BDD with Ginkgo](https://semaphoreci.com/community/tutorials/getting-started-with-bdd-in-go-using-ginkgo)\n* [Ginkgo](http://onsi.github.io/ginkgo/)\n\nCLI Tools\n---------\n\n* [https://github.com/spf13/cobra](https://github.com/spf13/cobra)\n* https://github.com/spf13/viper\n\nNetworkging and HTTP\n--------------------\n\n* https://github.com/dghubble/sling\n\nTooling\n-------\n\n* [JSON to Struct Converter](http://json2struct.mervine.net/)\n\nPackages and Frameworks\n-----------------------\n\n* [YAML Conversion with Go](http://ghodss.com/2014/the-right-way-to-handle-yaml-in-golang/)\n\nGeneral\n-------\n\n* [Awesome Go](https://github.com/avelino/awesome-go)\n* [Top 10 Go Packages](https://medium.com/@_orcaman/most-imported-golang-packages-some-insights-fb12915a07#.1i2im8nom)\n* [List of Books about Go](https://github.com/dariubs/GoBooks)\n* [How to write Go code](https://golang.org/doc/code.html)\n","encoding":"utf-8"}},"public":true,"created_at":"2017-02-24T21:13:16Z","updated_at":"2017-06-11T09:24:04Z","description":"Go CheatSheet","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/comments","owner":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"forks":[],"history":[{"user":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"3b6c23558cd65aa0ae1cc2d5cf2ba73d50d02dd2","committed_at":"2017-06-11T09:24:04Z","change_status":{"total":17,"additions":16,"deletions":1},"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/3b6c23558cd65aa0ae1cc2d5cf2ba73d50d02dd2"},{"user":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"ffb844e57c246fa2bcf8360ade87cf56fb6aadf6","committed_at":"2017-04-03T12:42:24Z","change_status":{"total":26,"additions":25,"deletions":1},"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/ffb844e57c246fa2bcf8360ade87cf56fb6aadf6"},{"user":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"d08cf3ea2a5c1cd06c1abe0ad99f1b27f8dbc530","committed_at":"2017-03-11T12:39:18Z","change_status":{"total":3,"additions":2,"deletions":1},"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/d08cf3ea2a5c1cd06c1abe0ad99f1b27f8dbc530"},{"user":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"d3be5c1c083b984d8ef2425a8e68deed69ab2ee7","committed_at":"2017-03-11T12:36:56Z","change_status":{"total":5,"additions":5,"deletions":0},"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/d3be5c1c083b984d8ef2425a8e68deed69ab2ee7"},{"user":{"login":"michaellihs","id":575011,"node_id":"MDQ6VXNlcjU3NTAxMQ==","avatar_url":"https://avatars.githubusercontent.com/u/575011?v=4","gravatar_id":"","url":"https://api.github.com/users/michaellihs","html_url":"https://github.com/michaellihs","followers_url":"https://api.github.com/users/michaellihs/followers","following_url":"https://api.github.com/users/michaellihs/following{/other_user}","gists_url":"https://api.github.com/users/michaellihs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellihs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellihs/subscriptions","organizations_url":"https://api.github.com/users/michaellihs/orgs","repos_url":"https://api.github.com/users/michaellihs/repos","events_url":"https://api.github.com/users/michaellihs/events{/privacy}","received_events_url":"https://api.github.com/users/michaellihs/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"d93d7347f5974cfc682dbbf9a908800dfb450aff","committed_at":"2017-02-24T21:13:15Z","change_status":{"total":12,"additions":12,"deletions":0},"url":"https://api.github.com/gists/0648fddec0ae2f61bb877732b33679a0/d93d7347f5974cfc682dbbf9a908800dfb450aff"}],"truncated":false}