Go: ‘fmt’包的缩写含义是什么?

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

Go: Meaning of the 'fmt' package acronym

问题

在Golang中,"fmt"这个缩写代表什么意思?"fmt"是一个提供I/O函数(如Println)的包(可以使用import "fmt"导入)。

我猜"f"代表格式化,但找不到确切的答案。

英文:

What does the "fmt" acronym mean in Golang? "fmt" is a package that provides I/O functions like Println (you can import it with import "fmt").

I suppose that the "f" means formatting but can't find a proper answer.

答案1

得分: 56

fmt是格式化的缩写。来自文档

fmt包实现了类似于C语言的printfscanf的格式化输入输出。格式化的“动词”源自C语言,但更简单。

英文:

fmt is short for format. From the docs

> Package fmt implements formatted I/O with functions analogous to C's
> printf and scanf. The format 'verbs' are derived from C's but are
> simpler.

huangapple
  • 本文由 发表于 2014年5月12日 03:49:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/23597165.html
匿名

发表评论

匿名网友

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

确定