Add golang code comments
This commit is contained in:
parent
ef839dfa22
commit
a9bff47026
2 changed files with 2 additions and 0 deletions
1
db/db.go
1
db/db.go
|
@ -64,6 +64,7 @@ func Exit() {
|
|||
|
||||
}
|
||||
|
||||
// Prepare prepares a query for parameterization for future execution
|
||||
func Prepare(sql string, param ...interface{}) string {
|
||||
|
||||
return fmt.Sprintf(sql, param...)
|
||||
|
|
|
@ -26,6 +26,7 @@ type DB struct {
|
|||
}
|
||||
|
||||
func New(path string) (db *DB, err error) {
|
||||
// New sets up the underlying key-value store
|
||||
|
||||
var ds DS
|
||||
|
||||
|
|
Loading…
Reference in a new issue