Documentation ¶
Overview ¶
Package stability provides an API to validate the stability of persisted data structures. The only exported type is SerializedValue, that must be included data structures for persistence.
It checks that code change in data structures does not impact backward-compatibility.
Example ¶
package main import "github.com/TroutSoftware/sqlite/stability" type User struct { _ stability.SerializedValue Name string Age int } func main() { // empty function, the User structure matters. }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SerializedValue ¶
type SerializedValue struct{}
SerializedValue should be the first anonymous member of a data structure that is serialized (see example). Data structures marked as such can be passed to SQLite for persistence.
Click to show internal directories.
Click to hide internal directories.