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

Function WithMethodPrefix

class_reflect.go:31–35  ·  view source on GitHub ↗

WithMethodPrefix filters methods by name prefix

(prefix string)

Source from the content-addressed store, hash-verified

29
30// WithMethodPrefix filters methods by name prefix
31func WithMethodPrefix(prefix string) ReflectOption {
32 return func(opts *ReflectOptions) {
33 opts.MethodPrefix = prefix
34 }
35}
36
37// WithIgnoredMethods specifies method names to skip during binding
38func WithIgnoredMethods(methods ...string) ReflectOption {

Callers 1

Calls

no outgoing calls

Tested by 1