AddModifier binds a custom modifier command to the GJSON syntax. This operation is not thread safe and should be executed prior to using all other gjson function.
(name string, fn func(json, arg string) string)
| 2940 | // This operation is not thread safe and should be executed prior to |
| 2941 | // using all other gjson function. |
| 2942 | func AddModifier(name string, fn func(json, arg string) string) { |
| 2943 | modifiers[name] = fn |
| 2944 | } |
| 2945 | |
| 2946 | // ModifierExists returns true when the specified modifier exists. |
| 2947 | func ModifierExists(name string, fn func(json, arg string) string) bool { |
no outgoing calls
searching dependent graphs…