yamledit

package
v0.0.0-...-e8cf5ad Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package yamledit provides functions to edit YAML files.

Index

Constants

This section is empty.

Variables

View Source
var FieldAttributeOrder = mapKeyOrder{
	"name":        -6,
	"type":        -5,
	"external":    -4,
	"value":       -3,
	"description": -2,
}

FieldAttributeOrder is an ast.Visitor that sorts maps keys for field definitions.

Functions

func DeleteNode

func DeleteNode(f *ast.File, p *yaml.Path) error

DeleteNode deletes a node from a map.

func SetString

func SetString(f *ast.File, p *yaml.Path, value string) error

SetString replaces the node at the specified path with a StringNode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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