edit

package
v0.0.0-...-460841a Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoChangesMade = stderrors.New("no changes made")
)

Functions

This section is empty.

Types

type Editor

type Editor interface {
	Edit(ctx context.Context, p string, data []byte) ([]byte, error)
}

type Service

type Service interface {
	Edit(ctx context.Context, path string, key maybe.Maybe[string]) error
}

func NewService

func NewService(s appservice.Service, editor Editor) Service

Jump to

Keyboard shortcuts

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