Created
October 23, 2021 12:19
-
-
Save dickyaryag6/58791625019ba6ca4f3318f99854cf09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package repository | |
| import ( | |
| "fmt" | |
| ) | |
| type Database struct {} | |
| func New(db Database) Database { | |
| return db | |
| } | |
| func (db Database) Insert(value int) error { | |
| fmt.Println("Inserting to database ...") | |
| return nil | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment