list

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommaDelimited

type CommaDelimited[T any] []T

CommaDelimited is a list of T entries separated by commas.

func (CommaDelimited[T]) MarshalText

func (l CommaDelimited[T]) MarshalText() ([]byte, error)

func (*CommaDelimited[T]) UnmarshalText

func (l *CommaDelimited[T]) UnmarshalText(text []byte) error

type NewLineDelimited

type NewLineDelimited[T any] []T

NewLineDelimited is a list of T entries separated by newlines.

func (NewLineDelimited[T]) MarshalText

func (l NewLineDelimited[T]) MarshalText() ([]byte, error)

func (*NewLineDelimited[T]) UnmarshalText

func (l *NewLineDelimited[T]) UnmarshalText(text []byte) error

type SpaceDelimited

type SpaceDelimited[T any] []T

CommaDelimited is a list of T entries separated by whitespace.

func (SpaceDelimited[T]) MarshalText

func (l SpaceDelimited[T]) MarshalText() ([]byte, error)

func (*SpaceDelimited[T]) UnmarshalText

func (l *SpaceDelimited[T]) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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