YAML Multi-Line Arrays

后端 未结 5 2075
闹比i
闹比i 2020-12-04 13:35

In YAML, you can easily create multi-line strings. However, I would like the ability to create a multi-line array (mainly for readibility within config files) using the

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 14:19

    If what you are needing is an array of arrays, you can do this way:

    key:
      - [ 'value11', 'value12', 'value13' ]
      - [ 'value21', 'value22', 'value23' ]
    

提交回复
热议问题