Liking cljdoc? Tell your friends :D

resource-config.core


configclj

(config)
(config keys)
(config keys default)

Read a value from the configuration file at keys (keys is a path of keys as used in get-in). There are two arities.

If the file does not exist, throws a FileNotFoundException.

If a value at keys does exist, returns it.

If a value at keys does not exist and no default is given (single argument), throws an exception.

If a value at keys does not exist and a default is given, returns the default.

Read a value from the configuration file at `keys` (`keys` is a
path of keys as used in `get-in`). There are two arities.

If the file does not exist, throws a FileNotFoundException.

If a value at `keys` does exist, returns it.

If a value at `keys` does not exist and no `default` is given (single
argument), throws an exception.

If a value at `keys` does not exist and a `default` is given,
returns the default.
sourceraw docstring

config-file-nameclj

source

read-configclj

source

reload-config!clj

(reload-config!)
source

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