commit
843ad5c050
2
db/db.go
2
db/db.go
|
@ -4,7 +4,7 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/thewhitetulip/task/types"
|
"github.com/thewhitetulip/Tasks/types"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
2
main.go
2
main.go
|
@ -7,7 +7,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/julienschmidt/httprouter"
|
"github.com/julienschmidt/httprouter"
|
||||||
"github.com/thewhitetulip/task/viewmodels"
|
"github.com/thewhitetulip/Tasks/viewmodels"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package viewmodels
|
package viewmodels
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/thewhitetulip/task/db"
|
"github.com/thewhitetulip/Tasks/db"
|
||||||
"github.com/thewhitetulip/task/types"
|
"github.com/thewhitetulip/Tasks/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetTasks(status string) []types.Task {
|
func GetTasks(status string) []types.Task {
|
||||||
|
|
Loading…
Reference in New Issue