Documentation ¶
Overview ¶
Helpers for dealing with file paths and their contents
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read
deprecated
If the argument is a path, Read loads it and returns the contents, otherwise the argument is assumed to be the desired contents and is simply returned.
Deprecated: This will be removed in v2 without replacement. If you need its functionality, you can copy it or reference the v1 package.
The boolean second return value can be called `wasPath` - it indicates if a path was detected and a file loaded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.