[go-nuts] Re: scripting in Go

2022-01-26 Thread eko...@gmail.com
I made a second variant in a separate repo/module: https://pkg.go.dev/github.com/egonk/scr The function names are more descriptive, Printf wrappers were removed and it is not meant to be used as a dot import anymore. On Monday, January 24, 2022 at 12:32:48 PM UTC+1 eko...@gmail.com wrote

[go-nuts] Re: scripting in Go

2022-01-26 Thread eko...@gmail.com
myself using M > immediately, but some like W I'm not likely to remember as readily and > longer names would help in adopting the library. (Also, what is the > mnemonic for W?) Afterall, commands in vi have a long form and short forms. > On Monday, 24 January 2022 at 10:32:48 p

[go-nuts] Re: scripting in Go

2022-01-25 Thread eko...@gmail.com
> > Just my $0.02. Otherwise, I generally like the idea of providing a > simplified API for supporting quick&dirty throwaway scripting in Go. > Remember what Kelsey Hightower said: "Bash is the reason people leave IT"! > :-) > On Monday, January 24, 2022 at 12:32:4

[go-nuts] scripting in Go

2022-01-24 Thread eko...@gmail.com
sc is a convenience package to support writing short automation scripts that simply panic on errors. It is similar to shell scripting with "set -e" option. https://pkg.go.dev/github.com/egonk/sc I wrote the package to stop copy pasting trivial helpers in throwaway and build automation scripts.