Documentation ¶ Index ¶ func FileExists(filename string) bool func ReadFile(ctx context.Context, path string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func FileExists ¶ func FileExists(filename string) bool FileExists returns true if a file referenced by filename exists & accessible. func ReadFile ¶ func ReadFile(ctx context.Context, path string) ([]byte, error) ReadFile reads a local or remote file and returns the read bytes, the location of the file is determined based on its prefix, http(s), (s)ftp prefixes are supported. no prefix means the file is local. `-` means stdin. Types ¶ This section is empty. Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.