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
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