Documentation ¶ Index ¶ func SaveFileWithBackup(path string, data []byte, backupDir string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SaveFileWithBackup ¶ func SaveFileWithBackup(path string, data []byte, backupDir string) error SaveFileWithBackup will backup the file before save it. e.g., backup meta.yaml as meta-2006-01-02T15:04:05Z07:00.yaml backup the files in the same dir of path if backupDir is empty. Types ¶ This section is empty. Source Files ¶ View all Source files file.go Click to show internal directories. Click to hide internal directories.