標準入力の内容があるかどうかチェックする

a2ikma2ikm のブックマーク 2016/01/24 01:00

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Check if there is something to read on STDIN in Golang

    I need a command line utility to behave different if some string is piped into its STDIN. Here's some minimal example: package main // file test.go import ( "fmt" "io/ioutil" "os" ) func main() { b...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう