Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLabel = errors.New("invalid label passed") ErrMissingLabel = errors.New("missing file for label(s) passed") )
Functions ¶
func Format ¶
Format formats and strips out any invalid characters from provided labels. Invalid character is anything that [^a-z0-9-] does match.
func Open ¶
Open validates and opens the file constructed from the labels. If the file does not exist or some labels are invalid, returns ErrMissingLabel and ErrInvalidLabel respectively. If os.O_CREATE flag is passed and the file does not exist, it is created with mode perm config.StdFileMode.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.