mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 10:38:19 +08:00
docs: Englished documents
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<name>EasyConfiguration</name>
|
<name>EasyConfiguration</name>
|
||||||
<description>轻松(做)配置,简单便捷的通用配置文件加载、读取与更新工具,可自定义配置格式。</description>
|
<description>A simple, easy-to-use and universal solution for managing configuration files.</description>
|
||||||
<url>https://github.com/CarmJos/EasyConfiguration</url>
|
<url>https://github.com/CarmJos/EasyConfiguration</url>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
|||||||
@@ -62,74 +62,3 @@ dependencies {
|
|||||||
api "cc.carm.lib:easyconfiguration-yaml:[LATEST RELEASE]"
|
api "cc.carm.lib:easyconfiguration-yaml:[LATEST RELEASE]"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example file format
|
|
||||||
```yaml
|
|
||||||
version: 1.0.0
|
|
||||||
|
|
||||||
test-save: false
|
|
||||||
|
|
||||||
test-number: 6161926779561752576
|
|
||||||
|
|
||||||
test-enum: DAYS
|
|
||||||
|
|
||||||
# Section类型数据测试
|
|
||||||
user: # Section数据也支持InlineComment注释
|
|
||||||
name: '35882'
|
|
||||||
info:
|
|
||||||
uuid: 554b79f1-7c39-4960-82d1-5514c9734417
|
|
||||||
|
|
||||||
uuid-value: 9a86663e-2fc7-4851-a423-c7e5d8e94a47 # This is an inline comment
|
|
||||||
|
|
||||||
sub:
|
|
||||||
that:
|
|
||||||
operators: []
|
|
||||||
|
|
||||||
# [ID - UUID]对照表
|
|
||||||
|
|
||||||
# 用于测试Map类型的解析与序列化保存
|
|
||||||
users:
|
|
||||||
'1': 1c055bdd-c9d1-4931-8270-3d162247f38a
|
|
||||||
'2': 934e2b05-2417-424e-80fd-fe58c6725837
|
|
||||||
'3': 442949a2-8345-4210-a87b-593d7168980e
|
|
||||||
'4': 5c015453-4b5b-42e3-ad87-b9498f2dfeab
|
|
||||||
'5': 8f9640e7-0fbd-4f73-b737-f0b707215e71
|
|
||||||
|
|
||||||
# Inner Test
|
|
||||||
inner:
|
|
||||||
inner-value: 51.223503560658166
|
|
||||||
|
|
||||||
class-value: 1.0
|
|
||||||
|
|
||||||
test:
|
|
||||||
# Section类型数据测试
|
|
||||||
user: # Section数据也支持InlineComment注释
|
|
||||||
name: Carm
|
|
||||||
info:
|
|
||||||
uuid: 3d1ef2a0-a38b-44f3-b15f-8e3b22cb8cc6
|
|
||||||
|
|
||||||
# 以下内容用于测试序列化
|
|
||||||
model-test:
|
|
||||||
some-model:
|
|
||||||
==: SomeModel
|
|
||||||
num: 855
|
|
||||||
name: 4f6b7
|
|
||||||
any-model:
|
|
||||||
==: AnyModel
|
|
||||||
name: 63d05
|
|
||||||
state: false
|
|
||||||
models:
|
|
||||||
- name: 481f3
|
|
||||||
state: true
|
|
||||||
- name: fcf3e
|
|
||||||
state: false
|
|
||||||
- name: '14e50'
|
|
||||||
state: false
|
|
||||||
model-map:
|
|
||||||
a:
|
|
||||||
name: 1fb9b
|
|
||||||
state: false
|
|
||||||
b:
|
|
||||||
name: 5486f
|
|
||||||
state: false
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user