save buffer before and after gofmt is called