confick is a tiny library to load and cache configuration settings from an EDN file.
The library can be installed from Clojars using Leiningen:
(require '[confick.core :as cnf])
(cnf/bind [^:required addr [:tcp :address]
^{:default 80} port [:tcp :port]]
(println (format "%s:%d" addr port)))
Use bind* to assign configuration values at compile-time.
Can you improve this documentation?Edit on GitHub
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 |