Switching to sql.nulltype

This commit is contained in:
2024-03-18 16:13:44 +01:00
parent 6879221996
commit 45c6cebc2c
4 changed files with 16 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ import (
"time"
"github.com/gorilla/mux"
"gopkg.in/guregu/null.v4"
)
func RequestHandler(w http.ResponseWriter, r *http.Request) {
@@ -63,7 +64,7 @@ func GetOSbyID(w http.ResponseWriter, r *http.Request) {
}
func GetDistributionList(w http.ResponseWriter, r *http.Request) {
var list []string
var list []null.String
var err error
t := time.Now()
@@ -82,7 +83,7 @@ func GetDistributionList(w http.ResponseWriter, r *http.Request) {
}
func GetVersionByDistributionList(w http.ResponseWriter, r *http.Request) {
var list []string
var list []null.String
var err error
t := time.Now()