fmt: more doc needed for Formatter #42476
Open
Milestone
Comments
There are no constraints how to implement formatters apart from the function signature. Its up to the developer to decide what should be handled how for each type. Which verbs produce output and which dont. Which verbs are implemented directly and which are formatted using other functions. An example could be added. Contributions welcome. |
Yes, there are no constraints. But guidelines or best practices would still be helpful. Also the stdlib has very few implementation of that interface ( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current (go1.15, tip) documentation of interface
fmt.Formatter
:This is insufficient to tell how one must implement this interface:
Printf
?The text was updated successfully, but these errors were encountered: