package db zu data umbenannt, außerdem db.Open() zu data.OpenDB()
This commit is contained in:
@ -8,11 +8,11 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"streifling.com/jason/sicherheitsunterweisung/packages/db"
|
||||
"streifling.com/jason/sicherheitsunterweisung/packages/data"
|
||||
"streifling.com/jason/sicherheitsunterweisung/packages/types"
|
||||
)
|
||||
|
||||
func DisplayTable(db *db.DB) http.HandlerFunc {
|
||||
func DisplayTable(db *data.DB) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
bs, err := db.ReadAll()
|
||||
if err != nil {
|
||||
@ -22,7 +22,7 @@ func DisplayTable(db *db.DB) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func DisplayResults(db *db.DB) http.HandlerFunc {
|
||||
func DisplayResults(db *data.DB) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
bs, err := db.ReadByName(r.PostFormValue("search"))
|
||||
if err != nil {
|
||||
@ -45,7 +45,7 @@ func AddParticipant(i *int64) http.HandlerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
func SubmitForm(db *db.DB, i, j *int64) http.HandlerFunc {
|
||||
func SubmitForm(db *data.DB, i, j *int64) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
b := new(types.Briefing)
|
||||
|
||||
|
Reference in New Issue
Block a user