Words can have multiple meaning in distinct different contexts.
In case of “format” all of the meanings loosely follow the metaphor of making something fit into a given or expected shape.
Randomly searching the web for single words therefore rarely brings up what you need. Even if you narrow down a bit by adding “computer” to the search, thats not helping much.
And in this special case you already know the canonical source of truth, the documenation of gos
fmt package (which is short for format).
This package has the purpose of formatting strings into the terminal, files, or other strings.
Not more, not less.