我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在Go模式下调试gofmt命令

Here is my config:

(add-hook 'before-save-hook 'gofmt-before-save)
(setq-default gofmt-command "gofmt")

When I press M-x gofmt I get the next message in the Messages buffer:

Wrote c:/Users/andre/AppData/Local/Temp/gofmtXYhFv6.go
Calling gofmt: gofmt (-w c:/Users/andre/AppData/Local/Temp/gofmtXYhFv6.go)
Applied gofmt

But my source file is still unformatted. I am using emacs on Windows. How can I find the reason of problem ?

近期文章

  • 解析XML,报告未知标签/属性
  • 使用mongo-go-driver和接口将光标反序列化为数组
  • 单击鼠标后未显示矩形
  • 两个结构指针之间的类型转换
  • 如何使用Gomail设置发送电子邮件地址
  • 更新时为特定分支锁定go模块
  • 为使用gogradle构建的go程序添加protobuf支持
  • 更新,选择原子。 GORM ORM
  • 如何在Go中仅使用打开标签来解析文本
  • 如何为不同时区设置多个克朗
  • vscode:如何调试用完shell脚本的golang
  • AWS Workspaces Active Directory-使用SDK创建用户
  • Golang无法从主机上的Sql Server浏览器获取实例
  • 如何使用go和mongodb在heroku上部署应用程序而不会出现错误?
  • 使用http.Redirect重定向到使用html模板生成的网页
  • Beego请求周期挂钩
  • 逐行读取特定数据
  • Makefile未设置GOOS环境变量
  • 不支持查询关键条件
  • 云功能部署问题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华