How to achieve interactive communication between a Go app and an exec'ed app via stdin/stdout?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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.
coderabbit.ai
featured
Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
  1. ephemerald

    Ephemeral docker-based server instances for (parallel) testing

    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

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

    CodeRabbit logo
  3. go-web-crontab

    A crontab-like executor with a web front-end

    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.

  4. GoBot2

    Second Version of The GoBot Botnet, But more advanced.

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

  5. remco

    remco is a lightweight configuration management tool

    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

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Remco is a lightweight configuration management tool

    1 project | news.ycombinator.com | 13 Feb 2025
  • Ask HN: Configuration engine that doesn't depend on interpreted language?

    1 project | news.ycombinator.com | 18 Sep 2024
  • Ask HN: Are there any open source forks of nomad smd consul?

    9 projects | news.ycombinator.com | 2 May 2024
  • Replicating and Load Balancing Go Applications in Docker Containers with Consul and Fabio

    4 projects | /r/golang | 31 May 2023
  • Which one will you pick as a Raft library?

    2 projects | /r/golang | 1 Jan 2022

Did you know that Go is
the 4th most popular programming language
based on number of references?