eeeep

in golang, you can concatinate a string with the + operator

var1 := 4
var2 := string(var1)
var3 := "blep" + var2

Then use
fmt.printf("T", var3)
to confirm it is indeed a string.

And it is indeed a string... until you try to use it as an argument in:
exec.Command("sh", "-c", var3)

Then its a string and not a string at the same time

eeeeeeeeeeeppp

So you gotta:
var4 := "blep"
var5 := fmt.Sprintf("%s%d", var4, var5)

Then a string is a string (and not not a string) when passed to exec.Command

eeeeeeeeeeeeeeeeppp


0

If you have a fediverse account, you can quote this note from your own instance. Search https://swarm.coiloptic.org/brettm/p/1746578405.575524 on your instance and quote it. (Note that quoting is not supported in Mastodon.)