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:

> 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. Obviously panics instead of errors are not 
> recommended for Go code, but I saw no big benefits by writing elaborate 
> error messages in such scripts.
>
> M (generic Must) does not show on pkg.go.dev, probably because generics 
> are not yet enabled. P (Printf) and PE (Fprintf os.Stderr) are currently 
> not detected by go vet as printf funcs, is there a way to mark them in the 
> package as printf?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8fc7039f-0420-41a6-b7f9-a25f7f10c52cn%40googlegroups.com.

Reply via email to