mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-02-14 14:34:43 +08:00
update docker deploy
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package param
|
||||
|
||||
import (
|
||||
"log"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
@@ -13,7 +12,6 @@ import (
|
||||
func IsEmpty(target any) bool {
|
||||
switch target.(type) {
|
||||
case int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64:
|
||||
log.Println(`target == 0`, target == 0)
|
||||
return target == reflect.Zero(reflect.TypeOf(target)).Interface()
|
||||
case string:
|
||||
return target == ""
|
||||
|
||||
Reference in New Issue
Block a user