yamled

package module
v0.2.1-0...-1dd7c76 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

README

yamled

Moved to https://github.com/vmware-labs/go-yaml-edit

Release v0.1.4 is the last release of this package, which is now implemented in terms of github.com/vmware-labs/go-yaml-edit, i.e. clients can safely depend on both import paths and Go module minimal version selection will do the right thing.

Documentation

Overview

Package yamled implements helpers for in-place editing of YAML sources.

Moved to https://github.com/vmware-labs/go-yaml-edit

Release v0.1.4 is the last release of this package, which is now implemented in terms of `github.com/vmware-labs/go-yaml-edit`, i.e. clients can safely depend on both import paths and Go module minimal version selection will do the right thing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Node

func Node(n *yaml.Node) splice.Selection

Node returns a selection that spans over a YAML node.

Types

type Transformer

type Transformer = yamled.Transformer

A Transformer implements golang.org/x/text/transform.Transformer and can be used to perform precise in-place edits of yaml nodes in an byte stream.

func T

func T(ops ...splice.Op) *Transformer

T creates a transformer that performs YAML-aware edit operations.

Directories

Path Synopsis
Package splice allows to perform simple edits on a string, byte buffer or a file.
Package splice allows to perform simple edits on a string, byte buffer or a file.

Jump to

Keyboard shortcuts

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