JoinStringsf formats contents of xs using format and joins them with sep.
(format, sep string, withKeys bool, xs any)
| 140 | |
| 141 | // JoinStringsf formats contents of xs using format and joins them with sep. |
| 142 | func JoinStringsf(format, sep string, withKeys bool, xs any) string { |
| 143 | return JoinStringsMap(func(k, v any) string { |
| 144 | if withKeys { |
| 145 | return fmt.Sprintf(format, k, v) |
| 146 | } |
| 147 | return fmt.Sprintf(format, v) |
| 148 | }, sep, xs) |
| 149 | } |