Help us shape the future of Go! Take the 2026 Go Developer Survey

cmdutils

package
v1.21.19 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fresh

func Fresh(src proto.Message) proto.Message

Types

type EditFunc

type EditFunc func(prefix, suffix string, r io.Reader) ([]byte, string, error)
var EditFileForTest EditFunc

type Editor

type Editor struct {
	JsonTransform func([]byte) []byte
}

func (*Editor) EditConfig

func (e *Editor) EditConfig(m proto.Message) (proto.Message, error)

func (*Editor) PrintYAML

func (e *Editor) PrintYAML(m proto.Message, w io.Writer) error

func (*Editor) ReadDescriptors

func (e *Editor) ReadDescriptors(data []byte, result proto.Message) error

Jump to

Keyboard shortcuts

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