Go has the support for variable expansion, for example:
os.ExpandEnv("test-${USER}")`
>> "test-MyName"
But is there a way of expanding executables, as the way the shell behaves?
Something like
os.ExpandExecutable("test-$(date +%H:%M)")
>> "test-18:20"
I cannot find an equivalent method for this, is there an elegant way of doing this instead of manually extracting the placeholders out, executing and then replacing them?