Switching to sql.nulltype
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user