Closed kaidaguerre closed 2 years ago
type Migrateable interface{
MigrateFrom(old interface{})
}
func Migrate(old interface{}, new Migrateable, filepath)Migrateable{
// deserialise into new
if structVersion == expected{ return}
// deserialise into old
new.MigrateFrom(old)
// serialise to file
return new
}
John Smyth:
We should also look at updating the names for consistency of
-
vs_
(see also https://github.com/turbot/steampipe/issues/402) Files to update: