From 8c0d0dc0fe4327cbb9b4f97d9588c365834df899 Mon Sep 17 00:00:00 2001 From: Suraj patil Date: Sun, 10 Jan 2016 19:27:41 +0530 Subject: [PATCH] code formatting --- db/db.go | 3 +-- views/views.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/db/db.go b/db/db.go index d9f30a1..49f07b6 100644 --- a/db/db.go +++ b/db/db.go @@ -2,9 +2,9 @@ package db import ( "database/sql" - "log" _ "github.com/mattn/go-sqlite3" //we want to use sqlite natively "github.com/thewhitetulip/Tasks/types" + "log" "strings" "time" ) @@ -168,7 +168,6 @@ func RestoreTask(id int) error { return err } - //RestoreTask is used to restore tasks from the Trash func RestoreTaskFromComplete(id int) error { restoreSQL, err := database.Prepare("update task set finish_date=null,last_modified_at=datetime() where id=?") diff --git a/views/views.go b/views/views.go index 7c9e9b3..7b6189e 100644 --- a/views/views.go +++ b/views/views.go @@ -2,9 +2,9 @@ package views import ( "bufio" - "log" "github.com/thewhitetulip/Tasks/db" "io/ioutil" + "log" "net/http" "os" "strconv"