Liking cljdoc? Tell your friends :D
Clojure only.

steffan-westcott.clj-otel.instrumentation.api.config.glob

Support for string glob patterns used in instrumentation configuration.

Support for string glob patterns used in instrumentation configuration.
raw docstring

maybe-globclj

(maybe-glob {:keys [excluded included]})

Returns a predicate which matches provided glob patterns, or nil if no patterns are provided. A glob pattern is a string where ? is a single wildcard character and * is a (possibly zero-length) string of wildcard characters. Takes a map as follows:

keydescription
:excludedCollection of glob patterns, where predicate returns false if any match input string. Has precedence over :included.
:includedCollection of glob patterns, where predicate returns true if collection is empty or any pattern matches input string, false otherwise.
Returns a predicate which matches provided glob patterns, or nil if no
patterns are provided. A glob pattern is a string where `?` is a single
wildcard character and `*` is a (possibly zero-length) string of wildcard
characters. Takes a map as follows:

| key       | description |
|-----------|-------------|
|`:excluded`| Collection of glob patterns, where predicate returns `false` if any match input string. Has precedence over `:included`.
|`:included`| Collection of glob patterns, where predicate returns `true` if collection is empty or any pattern matches input string, `false` otherwise.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close