(path string)
| 405 | } |
| 406 | |
| 407 | func isOptimisticPath(path string) bool { |
| 408 | for i := 0; i < len(path); i++ { |
| 409 | if path[i] < '.' || path[i] > 'z' { |
| 410 | return false |
| 411 | } |
| 412 | if path[i] > '9' && path[i] < 'A' { |
| 413 | return false |
| 414 | } |
| 415 | if path[i] > 'z' { |
| 416 | return false |
| 417 | } |
| 418 | } |
| 419 | return true |
| 420 | } |
| 421 | |
| 422 | // Set sets a json value for the specified path. |
| 423 | // A path is in dot syntax, such as "name.last" or "age". |
no outgoing calls
no test coverage detected
searching dependent graphs…