20 lines
266 B
Go
20 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
|
|
}
|
|
}
|