rpaste/modules/utility/parsers.go
2021-12-24 02:01:22 -07:00

21 lines
266 B
Go

// parser area
package utility
import (
_ "errors"
"os"
_ "path"
_ "path/filepath"
_ "strings"
)
func StdInChecker() bool {
// This is hacky
data, _ := os.Stdin.Stat()
if (data.Mode() & os.ModeCharDevice) == 0 {
return true
} else {
return false
}
}