Thanks for adding a long-name variant! Indeed I feel the code is much more 
self-documenting this way. But in the end it is only a matter of getting 
used to an API. Power users of "sc" will certainly be able to read the 
original short-name variant without problems.

On Thursday, January 27, 2022 at 12:25:56 AM UTC+1 eko...@gmail.com wrote:

> 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/8b95e02b-72ee-4cb7-9708-a249fecccb2fn%40googlegroups.com.

Reply via email to