package webutility func Int32ValueOrDefault(val *interface{}) (def int32) { if *val != nil { def = (*val).(int32) } return def } func Int64ValueOrDefault(val *interface{}) (def int64) { if *val != nil { def = (*val).(int64) } return def } func Uint32ValueOrDefault(val *interface{}) (def uint32) { if *val != nil { def = (*val).(uint32) } return def } func Uint64ValueOrDefault(val *interface{}) (def uint64) { if *val != nil { def = (*val).(uint64) } return def } func Float32ValueOrDefault(val *interface{}) (def float32) { if *val != nil { def = (*val).(float32) } return def } func Float64ValueOrDefault(val *interface{}) (def float64) { if *val != nil { return (*val).(float64) } return def } func StringValueOrDefault(val *interface{}) (def string) { if *val != nil { def = (*val).(string) } return def }