Documentation
¶
Index ¶
- Constants
- func CompatibleFile(data1 map[string]interface{}, data2 map[string]interface{}) error
- func CompatibleTransform(data1 map[string]interface{}, data2 map[string]interface{}) error
- func CompatibleVersion(data1 map[string]interface{}, data2 map[string]interface{}) error
- func ParseFormatVersion(data map[string]interface{}) (int, int, error)
Constants ¶
View Source
const ( VersionKey = "_format_version" TransformKey = "_transform" )
Variables ¶
This section is empty.
Functions ¶
func CompatibleFile ¶
CompatibleFile returns nil if the files are compatible. An error otherwise. see CompatibleVersion and CompatibleTransform for what compatibility means.
func CompatibleTransform ¶
CompatibleTransform checks if 2 files are compatible, by '_transform' keys. Returns nil if compatible, and error otherwise.
func CompatibleVersion ¶
CompatibleVersion checks if 2 files are compatible, by '_format_version'. Version is compatible if they are the same major. Missing versions are assumed to be compatible. Returns nil if compatible, and error otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.