Randomblue
Randomblue

Reputation: 116383

What do the fmt functions stand for?

The package name fmt stands for "format". I am quite confused by the function names inside the package. Are the following correct?

Upvotes: 2

Views: 5516

Answers (1)

Sergio Tulentsev
Sergio Tulentsev

Reputation: 230521

More or less. Except that F* things are file related

  • Fprint stands for "file print"
  • Fscan stands for "file scan"

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

Related Questions