Skip to content

Instantly share code, notes, and snippets.

@bwiggs
Created October 22, 2015 18:01
Show Gist options
  • Save bwiggs/0be966acfb10a3451ea3 to your computer and use it in GitHub Desktop.
Save bwiggs/0be966acfb10a3451ea3 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
fmt.Printf("%+v\n", $1)
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>debug</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.go</scope>
</snippet>
@bwiggs
Copy link
Author

bwiggs commented Oct 22, 2015

This is a quick golang snippet to quickly dump an object in the console. The trigger word is debug.

Installing

Add this to your User packages settings. Or copy and paste it using Tools > New Snippet. Be sure to save the filename with the extension sublime-snippet. It should work without requiring a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment