Created
October 22, 2015 18:01
-
-
Save bwiggs/0be966acfb10a3451ea3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 extensionsublime-snippet
. It should work without requiring a restart.