Liking cljdoc? Tell your friends :D

config.core


contains-in?clj

(contains-in? m k-path)

checks whether the nested key exists in a map

checks whether the nested key exists in a map
raw docstring

deep-merge-withclj

(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}
raw docstring

envclj

A map of environment variables.

A map of environment variables.
raw docstring

keywordizeclj

(keywordize s)

load-envclj

(load-env & configs)

Generate a map of environment variables.

Generate a map of environment variables.
raw docstring

merge-mapsclj

(merge-maps & m)

parse-numberclj

(parse-number v)

read-config-fileclj

(read-config-file f)

read-env-fileclj

(read-env-file f)

read-system-envclj

(read-system-env)

read-system-propsclj

(read-system-props)

reload-envclj

(reload-env)

sanitize-keyclj

(sanitize-key k)

str->valueclj

(str->value v)

ENV vars and system properties are strings. str->value will convert: the numbers to longs, the alphanumeric values to strings, and will use Clojure reader for the rest in case reader can't read OR it reads a symbol, the value will be returned as is (a string)

ENV vars and system properties are strings. str->value will convert:
the numbers to longs, the alphanumeric values to strings, and will use Clojure reader for the rest
in case reader can't read OR it reads a symbol, the value will be returned as is (a string)
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close