()
| 6 | ) |
| 7 | |
| 8 | func IsCalledFromPipe() bool { |
| 9 | fileInfo, _ := os.Stdin.Stat() |
| 10 | return fileInfo != nil && fileInfo.Mode()&os.ModeCharDevice == 0 |
| 11 | } |
| 12 | |
| 13 | // ReadValuesFromPipe will return an array of strings from the pipe |
| 14 | // input separated by new line. |
no outgoing calls
no test coverage detected