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
Right now this is converted to a JS object with Name and Update properties. One way to allow for customization is to update the value conversion logic to respect otto:"name" struct tags, but that would not help the method names. For that it would need some kind of out-of-band configuration on _runtime, which seems undesirable.
I think my only option right now is to copy the conversion code (runtime.toValue) into my project and then customize it freely.
Does that seem right, or do you have any ideas that I could contribute back?
Thank you!
Rob
The text was updated successfully, but these errors were encountered:
I was interested in exposing Go struct properties and methods to JS code using the conventional casing, lowerCamel.
For example,
Right now this is converted to a JS object with
Name
andUpdate
properties. One way to allow for customization is to update the value conversion logic to respectotto:"name"
struct tags, but that would not help the method names. For that it would need some kind of out-of-band configuration on_runtime
, which seems undesirable.I think my only option right now is to copy the conversion code (
runtime.toValue
) into my project and then customize it freely.Does that seem right, or do you have any ideas that I could contribute back?
Thank you!
Rob
The text was updated successfully, but these errors were encountered: