play.golang.org如何自动管理导入?

huangapple go评论77阅读模式
英文:

How does play.golang.org auto-manage imports?

问题

golang.org在Go Playgrounds中使用了一个开源的JavaScript库吗?"Imports"复选框是如何知道要添加哪些导入项的?

http://play.golang.org/p/A0nH96VB4S

英文:

Is there an open source JavaScript library that golang.org uses for Go Playgrounds? How does the Imports checkbox know which imports to add?

http://play.golang.org/p/A0nH96VB4S

答案1

得分: 6

它使用 goimports 工具。

goimports 作为 gofmt 的直接替代品,具有相同的所有选项。

英文:

It uses the goimports tool.

goimports works as a direct replacement for gofmt, with all the same options.

huangapple
  • 本文由 发表于 2014年8月5日 01:45:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/25124549.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定