applypatch

package
v8.0.65 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(tool ojson.Result) string

Description explains the JSON wrapper and preserves the original patch grammar.

func EscapeInputFragment

func EscapeInputFragment(fragment string) string

EscapeInputFragment encodes patch text for use inside a JSON string without quotes.

func IsCustomTool

func IsCustomTool(tool ojson.Result) bool

IsCustomTool reports whether the declaration is the custom apply_patch tool.

func Parameters

func Parameters() []byte

Parameters returns an independent copy of the patch input schema.

func UnwrapInput

func UnwrapInput(arguments string) (string, error)

UnwrapInput accepts only a JSON object containing one string field named input.

func WrapInput

func WrapInput(input string) string

WrapInput encodes the complete patch text as function arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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