|
|
@ -3,6 +3,7 @@ package jdr |
|
|
import( |
|
|
import( |
|
|
"html/template" |
|
|
"html/template" |
|
|
|
|
|
|
|
|
|
|
|
"fmt" |
|
|
"log" |
|
|
"log" |
|
|
"errors" |
|
|
"errors" |
|
|
"strings" |
|
|
"strings" |
|
|
@ -91,7 +92,7 @@ func (self *VariableType_int) ToInt(value JsonValue) (int64, error) { |
|
|
if isInt { |
|
|
if isInt { |
|
|
val = int64(val2) |
|
|
val = int64(val2) |
|
|
} else { |
|
|
} else { |
|
|
return 0, errors.New("Not int")) |
|
|
|
|
|
|
|
|
return 0, errors.New("Bad int type: " + fmt.Sprintf("%T", value)) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|