WithIgnoredFields specifies field names to skip during binding
(fields ...string)
| 43 | |
| 44 | // WithIgnoredFields specifies field names to skip during binding |
| 45 | func WithIgnoredFields(fields ...string) ReflectOption { |
| 46 | return func(opts *ReflectOptions) { |
| 47 | opts.IgnoredFields = append(opts.IgnoredFields, fields...) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | // BindClass automatically creates and builds a JavaScript class from a Go struct type using reflection. |
| 52 | // This is a convenience method that combines BindClassBuilder and Build. |
no outgoing calls