converstion.go 236 B

12345678
  1. package core
  2. // Conversion is an interface. A type implements Conversion will according
  3. // the custom method to fill into database and retrieve from database.
  4. type Conversion interface {
  5. FromDB([]byte) error
  6. ToDB() ([]byte, error)
  7. }