github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/go-xorm/core/converstion.go (about) 1 package core 2 3 // Conversion is an interface. A type implements Conversion will according 4 // the custom method to fill into database and retrieve from database. 5 type Conversion interface { 6 FromDB([]byte) error 7 ToDB() ([]byte, error) 8 }