Merge pull request #3 from Selly-Modules/feature/fixgetsetupdate
build get set null value
This commit is contained in:
commit
44034adbcb
7
get.go
7
get.go
|
@ -32,3 +32,10 @@ func GetTime(val null.Time) (res time.Time) {
|
|||
}
|
||||
return val.Time
|
||||
}
|
||||
|
||||
func GetJSON(val null.JSON) (res []byte) {
|
||||
if !val.Valid {
|
||||
return
|
||||
}
|
||||
return val.JSON
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue