|
|
|
|
|
by typical182
331 days ago
|
|
> The biggest problem is any string you pass as an argument to the fmt functions is moved onto the heap FWIW, that's not quite correct. For example, a string literal passed as a fmt argument won't be moved to the heap. The upcoming Go 1.25 release has some related improvements that help strings in more cases. See for example https://go.dev/cl/649079. |
|