Documentation ¶
Overview ¶
Package versioner implements common interfaces for file versioning and a simple default versioning scheme.
Index ¶
Constants ¶
View Source
const (
TimeFormat = "20060102-150405"
)
Variables ¶
View Source
var (
ErrDirectory = errors.New("cannot restore on top of a directory")
)
View Source
var ErrRestorationNotSupported = errors.New("version restoration not supported with the current versioner")
Functions ¶
func TagFilename ¶
TagFilename inserts ~tag just before the extension of the filename.
func UntagFilename ¶
UntagFilename returns the filename without tag, and the extracted tag
Types ¶
type FileVersion ¶
Click to show internal directories.
Click to hide internal directories.