mirror of https://github.com/tidwall/gjson.git
comments added
This commit is contained in:
parent
03b95eb3fe
commit
d512f4ed53
5
gjson.go
5
gjson.go
|
@ -2831,12 +2831,13 @@ func ModifierExists(name string, fn func(json, arg string) string) bool {
|
|||
return ok
|
||||
}
|
||||
|
||||
// DeleteModifier delete a custom modifier
|
||||
// DeleteModifier delete a custom modifier command
|
||||
// Modifier can be deleted when ever needed
|
||||
func DeleteModifier(name string) {
|
||||
modifiers.Delete(name)
|
||||
}
|
||||
|
||||
// DeleteModifierIfExists delete a custom modifier if it is existing
|
||||
// DeleteModifierIfExists delete a custom modifier command if it is existing
|
||||
func DeleteModifierIfExists(name string) {
|
||||
_, ok := modifiers.Load(name)
|
||||
if ok {
|
||||
|
|
Loading…
Reference in New Issue