Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go: Meaning of the 'fmt' package acronym

Tags:

go

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.

like image 387
Guilhem Soulas Avatar asked May 11 '14 19:05

Guilhem Soulas


1 Answers

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.

like image 112
Nick Craig-Wood Avatar answered Sep 21 '22 17:09

Nick Craig-Wood