(clean-slash path)(cpath->kpath cpath)consul path to key path: i.e. "/foo/bar/baz" to [:foo :bar :baz]
consul path to key path: i.e. "/foo/bar/baz" to [:foo :bar :baz]
(deep-merge-with f & maps)Like merge-with, but merges maps recursively, appling the given fn only when there's a non-map at a particular level. (deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4} {:a {:b {:c 2 :d {:z 9} :z 3} :e 100}}) -> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}
Like merge-with, but merges maps recursively, appling the given fn
only when there's a non-map at a particular level.
(deepmerge + {:a {:b {:c 1 :d {:x 1 :y 2}} :e 3} :f 4}
{:a {:b {:c 2 :d {:z 9} :z 3} :e 100}})
-> {:a {:b {:z 3, :c 3, :d {:z 9, :x 1, :y 2}}, :e 103}, :f 4}(key->prop k)(link connect from [to value])(map->props m & [serializer])(merge-maps & m)(nest-map m prefix)given a prefix in a form of [:a :b :c] and a map, nests this map under {:a {:b {:c m}}}
given a prefix in a form of [:a :b :c] and a map, nests this map under
{:a {:b {:c m}}}(props->map read-from-consul & [deserializer])(remove-nils m)(serialize-map m & [serializer])(with-slash path)adds a slash to the last position if it is not there
adds a slash to the last position if it is not there
(without-slash path)(without-slash path {:keys [slash] :or {slash :last}})removes slash from either ':first' or ':last' (default) position in case it is there
removes slash from either ':first' or ':last' (default) position in case it is there
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |