---
title: "YAML编解码-gyaml"
url: "https://goframe.org/docs/components/encoding-gyaml"
markdown_url: "https://goframe.org/docs/components/encoding-gyaml.md"
locale: "zh-Hans"
version: "2.10.x(Latest)"
section: "组件列表"
category: "组件列表 / 编码解码"
published: "2024-10-21"
updated: "2024-11-11"
description: "YAML数据格式的编解码方法，使用GoFrame框架下的gyaml库进行编码解析。通过导入github.com/gogf/gf/v2/encoding/gyaml包，可以方便地处理YAML格式的数据。此外，还提供了接口文档的链接供用户参考。"
keywords: ["GoFrame", "GoFrame框架", "YAML", "编码", "解码", "gyaml", "数据格式", "Go语言", "接口文档", "编码解析"]
---

# YAML编解码-gyaml

`YAML` 数据格式编码解析。

**使用方式**：

```go
import "github.com/gogf/gf/v2/encoding/gyaml"
```

**接口文档**：

[https://pkg.go.dev/github.com/gogf/gf/v2/encoding/gyaml](https://pkg.go.dev/github.com/gogf/gf/v2/encoding/gyaml)
