I often work with slices of UUIDs and want to include them in log messages. It is therefore convenient to be able to easily transform a slice of UUIDs into a slice of strings. In the interest of avoiding repeating code across many projects to accomplish this, I suggest defining a slice type in this project.
This PR adds such a type and defines a convenience method Strings() on it.
This type additionally gives maintainers the opportunity to add further convenience methods; for instance one could implement the sort interface on this new type.
I often work with slices of UUIDs and want to include them in log messages. It is therefore convenient to be able to easily transform a slice of UUIDs into a slice of strings. In the interest of avoiding repeating code across many projects to accomplish this, I suggest defining a slice type in this project.
This PR adds such a type and defines a convenience method
Strings()
on it.This type additionally gives maintainers the opportunity to add further convenience methods; for instance one could implement the sort interface on this new type.