arrops

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any](ops []SetOption[T], o *Options[T])

Types

type Options

type Options[T any] struct {
	LenSer muss.Serializer[int]
	ElemVl com.Validator[T]
}

Options for the array serializer.

type SetOption

type SetOption[T any] func(o *Options[T])

func WithElemValidator

func WithElemValidator[T any](elemVl com.Validator[T]) SetOption[T]

func WithLenSer

func WithLenSer[T any](lenSer muss.Serializer[int]) SetOption[T]

Jump to

Keyboard shortcuts

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