You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that with #11 support for specifying the output stream was added, and thus it is technically possible to use os.StdErr.
However given that such a library is most useful in CLI tools and filters (like sed, grep, etc.) that are part of a pipeline, having status printed on os.StdOut by default would take many (at least in the *NIX) world by surprise.
For example today I've tried integrating this library without thinking for a second it would clobber the standard output...
Therefore I would suggest making os.Stderr the default. (At least in a future version like v4 if backward compatibility is a major issue.)
The text was updated successfully, but these errors were encountered:
I know that with #11 support for specifying the output stream was added, and thus it is technically possible to use
os.StdErr
.However given that such a library is most useful in CLI tools and filters (like
sed
,grep
, etc.) that are part of a pipeline, having status printed onos.StdOut
by default would take many (at least in the *NIX) world by surprise.For example today I've tried integrating this library without thinking for a second it would clobber the standard output...
Therefore I would suggest making
os.Stderr
the default. (At least in a future version likev4
if backward compatibility is a major issue.)The text was updated successfully, but these errors were encountered: