---
title: "TOML编解码-gtoml"
url: "https://goframe.org/docs/components/encoding-gtoml"
markdown_url: "https://goframe.org/docs/components/encoding-gtoml.md"
locale: "zh-Hans"
version: "2.10.x(Latest)"
section: "组件列表"
category: "组件列表 / 编码解码"
published: "2024-10-21"
updated: "2024-11-11"
description: "使用GoFrame框架进行TOML数据格式的编码解析的方法。通过引入gogf的gtoml包，可以方便地对TOML格式的数据进行编解码操作。文章还提供了接口文档的链接，帮助开发者更深入了解gtoml的使用细节。"
keywords: ["TOML", "编解码", "gtoml", "GoFrame", "数据格式", "GoFrame框架", "接口文档", "编码解析", "gogf", "导入"]
---

# TOML编解码-gtoml

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

**使用方式**：

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

**接口文档**：

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