tomlex:lix剂的TOML解析器

时间:2021-04-29 05:08:16
【文件属性】:
文件名称:tomlex:lix剂的TOML解析器
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-29 05:08:16
Elixir 汤姆斯 lix剂的TOML解析器。 入门 您可以在阅读有关TOML标记语言的所有信息。 要求 Elixir v1.0.0 + 用法 将tomlex作为依赖项添加到mix.exs文件中。 defp deps do [{ :tomlex , " >= 0.0.0 " }] end 或者,您可以获取边缘版本。 defp deps do [{ :tomlex , git: " https://github.com/zamith/tomlex.git " }] end 完成后,在您的shell中运行mix deps.get来获取依赖项。 Tomlex获取一个字符串,并使用load函数将其解析为一个Elixir Map 。 defmodule YourApp do def your_function do parsed_file = File . read! ( "
【文件预览】:
tomlex-master
----mix.exs(999B)
----gen_docs.sh(24B)
----lib()
--------tomlex()
--------tomlex.ex(395B)
----.travis.yml(167B)
----config()
--------config.exs(1KB)
----test()
--------builders()
--------examples()
--------tomlex_test.exs(4KB)
--------test_helper.exs(15B)
--------list_parser_test.exs(347B)
----README.md(3KB)
----mix.lock(549B)
----.gitignore(39B)

网友评论