dirty

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dirty

type Dirty struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *Dirty

func (*Dirty) Any

func (dirty *Dirty) Any() bool

func (*Dirty) Data

func (dirty *Dirty) Data(reset bool) map[string]interface{}

func (*Dirty) Is

func (dirty *Dirty) Is(name string) bool

func (*Dirty) Reset

func (dirty *Dirty) Reset()

func (*Dirty) Set

func (dirty *Dirty) Set(name string, fn func() interface{})

func (*Dirty) Unset

func (dirty *Dirty) Unset(names ...string)

Jump to

Keyboard shortcuts

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