go-yamledit

module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: MIT

README

go-yamledit

Ask DeepWiki Go Reference

go-yamledit is a Go library to edit YAML files while keeping YAML comments and indentation. It provides high-level API to edit YAML using goccy/go-yaml. If you need more flexibility and performance, use goccy/go-yaml directly. This package allows you to edit YAML files easily without operating complicated YAML AST.

goccy/go-yaml is an excellent library for editing YAML using an AST. However, using it effectively is not always straightforward. While it provides a large number of APIs, the documentation and example code are not particularly comprehensive. In practice, you often need to inspect the parsed ast.Node structure and figure out how to implement the desired changes through trial and debugging. Even for small migrations, this can make the task feel unnecessarily heavy.

To address these challenges, go-yamledit provides high-level APIs that make common use cases easy to implement. At the same time, it remains flexible enough to support a wide range of scenarios.

For full document, please see GoDoc.

Directories

Path Synopsis
Package yamledit provides high-level API to edit YAML using goccy/go-yaml.
Package yamledit provides high-level API to edit YAML using goccy/go-yaml.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL