kdr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KDR_ACTION_KEEP = iota
	KDR_ACTION_DELETE
	KDR_ACTION_REPLACE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KdrAction

type KdrAction int

type Value

type Value[T any] struct {
	Replacement T
	Action      KdrAction
}

func Delete

func Delete[T any]() Value[T]

func Keep

func Keep[T any]() Value[T]

func Replace

func Replace[T any](replacement T) Value[T]

func (Value[T]) IsDelete

func (v Value[T]) IsDelete() bool

func (Value[T]) IsKeep

func (v Value[T]) IsKeep() bool

func (Value[T]) IsReplace

func (v Value[T]) IsReplace() bool

Jump to

Keyboard shortcuts

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