Reputation: 116383
The package name fmt
stands for "format". I am quite confused by the function names inside the package. Are the following correct?
Sprint
stands for "string print"?Sscan
stands for "string scan"?Fprint
stands for "format print"?Fscan
stands for "format scan"?Printf
stands for "print format"?Upvotes: 2
Views: 5516
Reputation: 230521
More or less. Except that F*
things are file related
Where "file" means "an IO object".
Those names might look confusing, but actually they match names from C stdlib, which exists since the last millennium! :) As Go is positioned as system programming language, it is natural that they mimic API of the other system language.
Upvotes: 4