2bbd4d0ee3
Implement `Int` / `Uint` functions which casts value to `int64` / `uint64`. Implement safe functions `IntSafe` / `UintSafe`. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
30 lines
463 B
JSON
30 lines
463 B
JSON
{
|
|
"value": "some value",
|
|
"section": {
|
|
"any": "thing"
|
|
},
|
|
|
|
"string_slice": {
|
|
"empty": [],
|
|
"filled": [
|
|
"string1",
|
|
"string2"
|
|
],
|
|
"incorrect": null
|
|
},
|
|
"string": {
|
|
"correct": "some string",
|
|
"incorrect": []
|
|
},
|
|
"duration": {
|
|
"correct": "15m",
|
|
"incorrect": "some string"
|
|
},
|
|
"number": {
|
|
"int_pos": 1,
|
|
"int_neg": -1,
|
|
"fract_pos": 2.5,
|
|
"fract_neg": -2.5,
|
|
"incorrect": "some string"
|
|
}
|
|
}
|