Liking cljdoc? Tell your friends :D

automaton-build.os.edn-utils

Adapter to read an edn file.

Adapter to read an edn file.
raw docstring

format-fileclj

(format-file filename)

Format the edn file Format file is not blocking if the formatter is not setup or if the file does not exist

Returns nil if successfully updated Params:

  • filename to format
Format the `edn` file
Format file is not blocking if the formatter is not setup or if the file does not exist

Returns nil if successfully updated
Params:
* `filename` to format
raw docstring

formatter-setupclj

(formatter-setup)

read-ednclj

(read-edn edn-filename)

Read file which name is edn-filename.

Returns:

  • filename
  • raw-content if file can be read.
  • invalid? to true whatever why.
  • exception if something wrong happened.
  • edn if the translation.
Read file which name is `edn-filename`.

Returns:

* `filename`
* `raw-content` if file can be read.
* `invalid?` to `true` whatever why.
* `exception` if something wrong happened.
* `edn` if the translation.
raw docstring

str->ednclj

(str->edn raw-content)

writeclj

(write edn-filename content)

Spit the content in the edn file called edn-filename. Params:

  • edn-filename Filename
  • content What is spitted Return nil if successful else map with :exception
Spit the `content` in the edn file called `edn-filename`.
Params:
* `edn-filename` Filename
* `content` What is spitted
Return nil if successful else map with :exception
raw docstring

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

× close