Liking cljdoc? Tell your friends :D

Usage with Clojure projects

In order to use the library add the dependency to your project.clj

;; Leiningen project
[com.brunobonacci/oneconfig "0.21.0"]

;; deps.edn format
{:deps { com.brunobonacci/oneconfig {:mvn/version "0.21.0"} }}

Latest version: Clojars Project

Then require the namespace:

(ns foo.bar
  (:require [com.brunobonacci.oneconfig :refer [configure]]))

Finally get the configuration for your service.

(configure {:key "service-name" :version "1.2.3" :env "prod"})
;;=> {...}

Can you improve this documentation?Edit on GitHub

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

× close