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/8ad6fb22-ad25-4df7-8116-6615175d5a33n%40googlegroups.com.