Documentation ¶
Overview ¶
Package version defines version of this repo.
It provides backward compatibility checking. Most data structure defined in this repo provides with serializing/deserializing APIs. Serialized data has a version to describe its structure.
Index ¶
Constants ¶
View Source
const ( // Latest supported version. // // On-disk data structure with older version can be read by a newer program. VERSION = "1.0.0" // Fixed size in byte for serialized version. // // verion is serialized as a string with a trailing '\0'. MAXLEN = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VersionGetter ¶
type VersionGetter interface {
GetVersion() Version
}
Click to show internal directories.
Click to hide internal directories.