okenvelope

package
v1.2.31 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	L = "OK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	EventID *eventid.T
	OK      bo
	Reason  by
}

func New

func New() *T

func NewFrom

func NewFrom[V st | by](eid V, ok bo, msg ...by) *T

func Parse

func Parse(b by) (t *T, rem by, err er)

func (*T) Label

func (en *T) Label() string

func (*T) MarshalJSON

func (en *T) MarshalJSON(dst by) (b by, err er)

func (*T) ReasonString

func (en *T) ReasonString() string

func (*T) UnmarshalJSON

func (en *T) UnmarshalJSON(b by) (r by, err er)

func (*T) Write

func (en *T) Write(w io.Writer) (err er)

Jump to

Keyboard shortcuts

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