You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we update the documentation of custom modifiers, to clearly specify that return type string should have quotes. If it doesn't have quotes we get empty value as result
I am thinking of adding this as note below custom modifier doc section
Please note that returned string type should have double quotes in it.
gjson.AddModifier("age", func(json, arg string) string {
if arg == "custom-arg" {
// Quotes is necessary here
return `"test"`
}
return json
})
The text was updated successfully, but these errors were encountered:
sharadregoti
changed the title
Update the documentation of custom modifiers
Update the documentation of custom modifiers to specify the need of quotes in return type
Dec 23, 2022
Can we update the documentation of custom modifiers, to clearly specify that return type string should have quotes. If it doesn't have quotes we get empty value as result
I am thinking of adding this as note below custom modifier doc section
The text was updated successfully, but these errors were encountered: