jsonparser icon indicating copy to clipboard operation
jsonparser copied to clipboard

How to pass an instance of jsonparser as a parameter

Open ckmax opened this issue 5 years ago • 0 comments

Hello,

I am trying to pass in jsonparser as a parameter to a function

res, err := HelloWorld(jsonparser), but can only do something like this: res, err := HelloWorld(jsonparser.Get)

Is there a way to initialize and pass in an 'instance' of jsonparser?

ckmax avatar May 29 '20 15:05 ckmax