

-
Again, the answer was 'use pipes' and the following reference was given as an example: https://github.com/boz/ephemerald/blob/master/lifecycle/action_exec.go#L130-L163
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Again, the solution involves pipes. There is not much further elaboration on the answer, except for the tip that you can reuse io.Reader/io.Writer intended to be used as pipes for other purposes, and vice-versa: any package that uses io.Reader/io.Writer can also read and write from stdin/stdout pipes.
-
The answer, once more, is to 'use pipes' and to take a look at this code. Unfortunately, that's for Windows only, which I'm most definitely not using...
-
I've also searched GitHub for working examples of similar solutions. Here is one, which I believe to have come across on StackOverflow https://github.com/HeavyHorst/remco/blob/89b372b597e621cf0934ffbb313d7abe9e96fc26/pkg/template/executor.go
Related posts
-
Remco is a lightweight configuration management tool
-
Ask HN: Configuration engine that doesn't depend on interpreted language?
-
Ask HN: Are there any open source forks of nomad smd consul?
-
Replicating and Load Balancing Go Applications in Docker Containers with Consul and Fabio
-
Which one will you pick as a Raft library?