1
1
mirror of https://github.com/mcuadros/ascode synced 2024-11-23 09:21:58 +01:00
ascode/_documentation/runtime/yaml.md

37 lines
529 B
Markdown
Raw Normal View History

2019-07-11 18:45:42 +02:00
---
title: 'encoding/yaml'
---
yaml provides functions for working with yaml data
## Functions
#### def <b>dumps</b>
```go
dumps(obj) string
```
serialize obj to a yaml string
**parameters:**
| name | type | description |
|------|------|-------------|
| 'obj' | 'object' | input object |
#### def <b>loads</b>
```go
loads(source) object
```
read a source yaml string to a starlark object
**parameters:**
| name | type | description |
|------|------|-------------|
| 'source' | 'string' | input string of yaml data |