iris/_examples/tutorial/mvc-from-scratch/persistence/database.go

11 lines
197 B
Go
Raw Normal View History

package persistence
// Database is our imaginary storage.
type Database struct {
Connstring string
}
func OpenDatabase(connstring string) *Database {
return &Database{Connstring: connstring}
}