|
@@ -30,15 +30,12 @@ func parseJSON(text string) map[string]interface{} {
|
|
|
}
|
|
|
|
|
|
func value(vs ...interface{}) interface{} {
|
|
|
- fmt.Printf("TEST VALUES [%v]\n", vs)
|
|
|
for _, v := range vs {
|
|
|
if vv, ok := v.(string); ok {
|
|
|
- fmt.Printf("TEST VALUE STRING [%s]\n", vv)
|
|
|
if len(vv) > 0 {
|
|
|
return vv
|
|
|
}
|
|
|
} else if v != nil {
|
|
|
- fmt.Printf("TEST VALUE ELSE [%v]\n", vv)
|
|
|
return v
|
|
|
}
|
|
|
}
|