package main import ( "database/dbtools" "encoding/json" "fmt" "log" "os" ) type Configuration struct { DriverName string `json:"driverName"` DataSourceName string `json:"dataSourceName"` } func main() { file, err := os.Open("configuration/config.json") if err != nil { log.Fatal(err.Error()) } defer file.Close() conf := new(Configuration) json.NewDecoder(file).Decode(conf) dbtools.DBInitializer(conf.DriverName, conf.DataSourceName) rowsAffected := dbtools.Delete(5) fmt.Println("Rows Affetced", rowsAffected) }