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
sourceraw 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}
sourceraw docstring

envclj

A map of environment variables.

A map of environment variables.
sourceraw docstring

keywordizeclj

(keywordize s)
source

load-envclj

(load-env & configs)

Generate a map of environment variables.

Generate a map of environment variables.
sourceraw docstring

merge-mapsclj

(merge-maps & m)
source

parse-numberclj

(parse-number v)
source

read-config-fileclj

(read-config-file f)
source

read-env-fileclj

(read-env-file f)
source

read-system-envclj

(read-system-env)
source

read-system-propsclj

(read-system-props)
source

reload-envclj

(reload-env)
source

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)
sourceraw docstring

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

× close