Cast indicates that the result value should be cast to the given type. ValuePath(b, "column", Path("a", "b", "[1]", "c"), Cast("int"))
(typ string)
| 443 | // |
| 444 | // ValuePath(b, "column", Path("a", "b", "[1]", "c"), Cast("int")) |
| 445 | func Cast(typ string) Option { |
| 446 | return func(p *PathOptions) { |
| 447 | p.Cast = typ |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | // PathOptions holds the options for accessing a JSON value from an identifier. |
| 452 | type PathOptions struct { |
no outgoing calls
searching dependent graphs…