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