Sometimes you discover some things in #Golang even after 10 years using it.I never noticed that we can "index" arguments in Printf function...
@metal3d like in php ;) very useful when using translations.
@Vimar I usually make this with the Go "template" package (native). But to only index repeated arguments, this is so cool.
I don't remember that PHP allows this. Maybe because I stopped using PHP for years 🙂
Technology lovers, here we are — (development, digital artwork, science…)
@Vimar I usually make this with the Go "template" package (native). But to only index repeated arguments, this is so cool.
I don't remember that PHP allows this. Maybe because I stopped using PHP for years 🙂