+
Skip to content

ae0000/stdinerror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

stdinerror

This little function is expecting to receive data via stdin. If there is any data it exits with a error code of 1. If stdin is empty, then it exists with an error code of 0 (ie. no error). This is useful when using CI and things like gofmt.

Example: If there is any content in the gofmt command (ie. there is a formatting error), then stdinerror returns a error response (exit(1)).

gofmt -l folder | ./stdinerror

About

Will return an error if any content is piped to it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载