From a9bff4702652898a63c4ec8a798c8746a3c2f145 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 17 Jul 2016 11:39:43 +0100 Subject: [PATCH] Add golang code comments --- db/db.go | 1 + kvs/db.go | 1 + 2 files changed, 2 insertions(+) diff --git a/db/db.go b/db/db.go index cbce0e43..f68a0558 100644 --- a/db/db.go +++ b/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...) diff --git a/kvs/db.go b/kvs/db.go index 375a23f1..82d29473 100644 --- a/kvs/db.go +++ b/kvs/db.go @@ -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