fmt 包的含义是什么?
开始学习go语言,就是fmt的包,这个包为啥叫fmt包呢?可以参考 go语言的文档。
参考:fmt/doc.go (下面代码所示)
go语言的fmt package ,实现了同C语言的printf,scanf类似 formatted I/O 的functions。
这个fomat 动词衍生于C语言,但是相比较更加简单。
go doc fmt
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.
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fmt



