Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRequest

func HandleRequest[T any](ctx context.Context, model T, g ModelGetter, s ModelSetter, diags *diag.Diagnostics, h func(m T) bool)

func MinifyHTML added in v0.3.0

func MinifyHTML(s string) (string, error)

func StringifyAttribute

func StringifyAttribute(ctx context.Context, name string, value types.Dynamic) (string, error)

Types

type ModelGetter

type ModelGetter interface {
	Get(ctx context.Context, target any) diag.Diagnostics
}

type ModelSetter

type ModelSetter interface {
	Set(ctx context.Context, val any) diag.Diagnostics
}

Jump to

Keyboard shortcuts

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