Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func OpenFile ¶
OpenFile opens a local file specified by the URL and supports reading and writing. If the path is "-", it returns os.Stdin for reading or os.Stdout for writing.
Types ¶
type OpenFileMode ¶
type OpenFileMode string
OpenFileMode represents the modes in which a file can be opened.
const ( // ModeRead will open the file for reading. ModeRead OpenFileMode = "read" // ModeWrite will truncate the file before writing. ModeWrite OpenFileMode = "write" // ModeAppend will append to the file. ModeAppend OpenFileMode = "append" )
Click to show internal directories.
Click to hide internal directories.