@@ -0,0 +1,277 @@
+import sublime, sublime_plugin%0Afrom subprocess import call%0A%0Aclass gofmt_onsave(sublime_plugin.EventListener):%0A    def on_post_save(self, view):%0A        file = view.file_name()%0A        fileType = file%5B-3:%5D%0A        if (fileType == %22.go%22):%0A            call(%5B%22gofmt%22, %22-w%22, file%5D)%0A

Create gofmt-onsave.py