Skip to main content

goog-define

macrov1.7

cljs.core/goog-define

(goog-define [sym default])
Defines a var using `goog.define`. Passed default value must be string, number or boolean. Default value can be overridden at compile time using the compiler option `:closure-defines`. Example: (ns your-app.core) (goog-define DEBUG! false) ;; can be overridden with :closure-defines {"your_app.core.DEBUG_BANG_" true} or :closure-defines {your-app.core/DEBUG! true}

No examples yet. Be the first to add one!