gildedsergigodiff

package
v0.0.0-...-c2ab036 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package gildedsergigodiff provides implementations for github.com/Serjick/gon-gild-on/golden based on github.com/sergi/go-diff.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTextTemplateDiffMatchPatchPreSaveHook

func NewTextTemplateDiffMatchPatchPreSaveHook() golden.PreSaveHook

NewTextTemplateDiffMatchPatchPreSaveHook is a pre save hook to transfer text/template actions from present golden file into new.

Types

type TextTemplateDiffMatchPatch

type TextTemplateDiffMatchPatch struct {
	// contains filtered or unexported fields
}

TextTemplateDiffMatchPatch is a text/template actions transferrer from one string to another.

func (*TextTemplateDiffMatchPatch) Patch

func (p *TextTemplateDiffMatchPatch) Patch(prev, next string) (string, error)

Patch transfers text/template actions from prev to next.

Directories

Path Synopsis
Package internal of gildedsergigodiff.
Package internal of gildedsergigodiff.

Jump to

Keyboard shortcuts

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