mirror of https://github.com/status-im/NimYAML.git
9 lines
155 B
Nim
9 lines
155 B
Nim
|
import yaml
|
||
|
type Person = object
|
||
|
name : string
|
||
|
age : int32
|
||
|
|
||
|
var personList: seq[Person]
|
||
|
var s = newFileStream("in.yaml")
|
||
|
load(s, personList)
|
||
|
s.close()
|