MCPcopy Create free account
hub / github.com/buke/quickjs-go / WithIgnoredFields

Function WithIgnoredFields

class_reflect.go:45–49  ·  view source on GitHub ↗

WithIgnoredFields specifies field names to skip during binding

(fields ...string)

Source from the content-addressed store, hash-verified

43
44// WithIgnoredFields specifies field names to skip during binding
45func 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.

Callers 1

Calls

no outgoing calls

Tested by 1