meta

package
v1.148.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 3 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBlank added in v1.145.0

func IsBlank(actual Valuer) bool

IsBlank checks for an empty string.

func IsEqual added in v1.145.0

func IsEqual(actual Valuer, expected string) bool

IsEqual checks if actual is expected.

func Strings added in v1.145.0

func Strings(ctx context.Context) map[string]string

Strings of meta.

func ValueOrBlank added in v1.146.0

func ValueOrBlank(s Valuer) string

ValueOrBlank for meta.

func WithAttribute

func WithAttribute(ctx context.Context, key string, value Valuer) context.Context

WithAttribute to meta.

Types

type Redacted added in v1.145.2

type Redacted string

Redacted for meta.

func (Redacted) String added in v1.145.2

func (v Redacted) String() string

String to satisfy fmt.Stringer.

func (Redacted) Value added in v1.146.0

func (v Redacted) Value() string

Value of the string.

type String added in v1.145.2

type String string

String for meta.

func (String) String added in v1.145.2

func (v String) String() string

String to satisfy fmt.Stringer.

func (String) Value added in v1.146.0

func (v String) Value() string

Value of the string.

type Valuer added in v1.146.0

type Valuer interface {
	Value() string

	fmt.Stringer
}

Valuer for meta.

func Attribute

func Attribute(ctx context.Context, key string) Valuer

Attribute of meta.

func Error added in v1.145.2

func Error(err error) Valuer

Error for meta.

func ToValuer added in v1.146.0

func ToValuer(st fmt.Stringer) Valuer

ToValuer for meta.

Jump to

Keyboard shortcuts

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