Golang script: Difference between revisions

From wikinotes
(Created page with "A collection of shellscript inspired utility functions,<br> with stream-like asynchronous piping. Very clever. = Documentation = <blockquote> {| class="wikitable" |- | github || https://github.com/bitfield/script |- |} </blockquote><!-- Documentation -->")
 
No edit summary
Line 10: Line 10:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= Example =
<blockquote>
<syntaxhighlight lang="go">
import "script"
script.Exec("ping 127.0.0.1").Stdout()
</syntaxhighlight>
</blockquote><!-- Usage -->

Revision as of 02:06, 15 December 2022

A collection of shellscript inspired utility functions,
with stream-like asynchronous piping. Very clever.

Documentation

github https://github.com/bitfield/script

Example

import "script"

script.Exec("ping 127.0.0.1").Stdout()