Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
func Map[K comparable, V any](orig map[K]V) map[K]V
func TraverseStringsFunc ¶
TraverseStringsFunc runs the given function on every string in the given value by traversing it recursively. If the given value is a string, the function will run on a copy of the string and return it. If the value is a struct, map or a slice, the function will recursively call itself for each field or element of the struct, map or slice until all strings inside the struct or slice are replaced.
Types ¶
Click to show internal directories.
Click to hide internal directories.