WithType 按类型过滤
(memoryType string)
| 121 | |
| 122 | // WithType 按类型过滤 |
| 123 | func WithType(memoryType string) Filter { |
| 124 | return func(opts *FilterOptions) { |
| 125 | opts.Type = memoryType |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | // WithScope 按作用域过滤 |
| 130 | func WithScope(scope MemoryScope) Filter { |
no outgoing calls