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

Function WithIgnoredMethods

class_reflect.go:38–42  ·  view source on GitHub ↗

WithIgnoredMethods specifies method names to skip during binding

(methods ...string)

Source from the content-addressed store, hash-verified

36
37// WithIgnoredMethods specifies method names to skip during binding
38func WithIgnoredMethods(methods ...string) ReflectOption {
39 return func(opts *ReflectOptions) {
40 opts.IgnoredMethods = append(opts.IgnoredMethods, methods...)
41 }
42}
43
44// WithIgnoredFields specifies field names to skip during binding
45func WithIgnoredFields(fields ...string) ReflectOption {

Callers 1

Calls

no outgoing calls

Tested by 1