3 ms·
https://golangexample.com/making-it-easy-to-write-shell-like-scripts-in-golang/ https://golangexample.com/making-it-easy-to-write-shell-like... with quick exam
by synergy20 5y ago
https://golangexample.com/making-it-easy-to-write-shell-like-scripts-in-golang/ https://golangexample.com/making-it-easy-to-write-shell-like... with quick examples, everything is pipe based just like bash|fish|zsh|csh
- 0xbadcafebee 5y agoGo script: p := Exec("man bogus") p.SetError(nil) output, err := p.String() fmt.Println(output) Shell script: man bogus ......I'm gonna stick with shell scripts.