jsonpatch

package
v0.108.0-b.63 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jsonpatch contains utilities for JSON Merge Patch APIs.

See https://www.rfc-editor.org/rfc/rfc7396.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonRemovable

type NonRemovable[T any] struct {
	Value T
	IsSet bool
}

NonRemovable is a type that prevents JSON null from being used to try and remove a value.

func (NonRemovable[T]) Set

func (v NonRemovable[T]) Set(ptr *T)

Set sets ptr if the value has been provided.

func (*NonRemovable[T]) UnmarshalJSON

func (v *NonRemovable[T]) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON implements the json.Unmarshaler interface for *NonRemovable.

Jump to

Keyboard shortcuts

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