Documentation ¶ Overview ¶ package filepersist provdies a mechanism for persisting data to a file at a permanent location Index ¶ func Save(filename string, data []byte, fileMode os.FileMode) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Save ¶ func Save(filename string, data []byte, fileMode os.FileMode) error Save saves the given data to the file at filename. If an existing file at that filename already exists, this simply chmods the existing file to match the given fileMode and otherwise leaves it alone. Types ¶ This section is empty. Source Files ¶ View all Source files filepersist.go Click to show internal directories. Click to hide internal directories.