Documentation ¶ Index ¶ func ReadFile(filename string) (string, error) func ReadFromStdIn() string func StdInAvailable() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ReadFile ¶ func ReadFile(filename string) (string, error) ReadFile reads the file named by filename and returns the contents as string. A successful call returns err == nil, not err == EOF. Because ReadFile reads the whole file, it does not treat an EOF from Read as an error to be reported. func ReadFromStdIn ¶ func ReadFromStdIn() string ReadFromStdIn reads text from stdin func StdInAvailable ¶ func StdInAvailable() bool StdInAvailable checks if there's data in stdin Types ¶ This section is empty. Source Files ¶ View all Source files os.go Directories ¶ Show internal Expand all Path Synopsis path Click to show internal directories. Click to hide internal directories.