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 is a website building & hosting documentation for Clojure/Script libraries
× close