package db import ( "fmt" "th7/data/core" ) type DummyAdapter struct { } func NewDummyAdapter() (*DummyAdapter, error) { return &DummyAdapter{}, nil } func (d *DummyAdapter) Close() { fmt.Println("Closing DB ...") } func (d *DummyAdapter) Save([]core.Channel) { fmt.Println("Saving data to DB ...") }