First time doing something more than basic and first “problem”, I have a command I execute:
composeAction := exec.Command("docker-compose", "up", args)
composeAction.Stderr = os.Stderr
composeAction.Stdout = os.Stdout
Instead of only “composeAction” I’d have like
composeRestart etc, I want to not do CTRL+C CTRL+V, so question is how to simplify this code?
I’m trying wrapping it around a function with receiver but “trying” is keyword.