added file level comments

This commit is contained in:
Suraj 2016-02-01 20:04:19 +05:30
parent 5b60435ee0
commit e7b6055693
7 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,10 @@
/*
Configuration package is used to read the configuration file
config.json which stores the server port for current implementation
{
"ServerPort": ":8081"
}
*/
package config
import (

View File

@ -1,5 +1,8 @@
package db
/*
stores the functions related to file IO
*/
import (
"log"
)

View File

@ -1,5 +1,12 @@
package db
/*
Stores the database functions related to tasks like
GetTaskByID(id int)
GetTasks(status string)
DeleteAll()
*/
import (
"database/sql"
"log"

View File

@ -1,5 +1,9 @@
package types
/*
Package types is used to store the context struct which
is passed while templates are executed.
*/
//Task is the struct used to identify tasks
type Task struct {
Id int

View File

@ -1,5 +1,8 @@
package views
/*
Holds the insert task related view handlers, includes the one for file upload
*/
import (
"crypto/md5"
"fmt"

View File

@ -1,5 +1,9 @@
package views
/*
Holds the delete related view handlers
*/
import (
"log"
"net/http"

View File

@ -1,5 +1,9 @@
package views
/*
Holds the non insert/update/delete related view handlers
*/
import (
"io/ioutil"
"log"