attribute

package
v0.0.0-...-e537141 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr slog.Attr

type Deps

type Deps struct {
	Logger *slog.Logger
	Map    *mapping.Methods
}

type Main

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

func (Main) Set

func (main Main) Set(m Map, name Name, val Value) error

func (Main) SetWith

func (main Main) SetWith(deps Deps, m Map, name Name, val Value) error

func (Main) Update

func (main Main) Update(toUpdate, with Map) error

func (Main) UpdateWith

func (main Main) UpdateWith(deps Deps, toUpdate, with Map) error

type Map

type Map map[Name]Value

type Methods

type Methods struct {
	Set    SetFunc
	Update UpdateFunc
}

func (Methods) Main

func (m Methods) Main(deps Deps) Main

type Name

type Name string

type SetFunc

type SetFunc func(Deps, Map, Name, Value) error

type UpdateFunc

type UpdateFunc func(deps Deps, toUpdate, with Map) error

type Value

type Value slog.Value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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