dIter

package
v0.1.84 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	// contains filtered or unexported fields
}

func New

func New() *Base

func (*Base) Empty

func (b *Base) Empty() bool

func (*Base) Error

func (b *Base) Error() error

func (*Base) Log

func (a *Base) Log(name string)

func (*Base) Next

func (b *Base) Next() bool

func (*Base) SetEmpty

func (b *Base) SetEmpty(e bool)

func (*Base) SetError

func (b *Base) SetError(e error)

func (*Base) String

func (a *Base) String(name string) string

type Inter

type Inter interface {
	sLog.InterStringLogName

	SetError(error)
	Error() error

	SetEmpty(bool)
	Empty() bool

	Next() bool
}

type InterConfig added in v0.1.11

type InterConfig interface {
	Inter

	Count() int
	Reset()
}

type InterIterConfig added in v0.1.25

type InterIterConfig interface {
	InterNameConfig

	Add(...InterNameConfig)
}

type InterLimited added in v0.1.21

type InterLimited[T any] interface {
	Inter

	Add(...T)
	Reset()
	Item() T
	Count() int

	Clone() InterLimited[T]
}

Define a generic interface

type InterNameConfig added in v0.1.25

type InterNameConfig interface {
	InterConfig
	Name() string
}

type IterConfig added in v0.1.25

type IterConfig struct {
	Inter
	// contains filtered or unexported fields
}

func NewIterConfig added in v0.1.25

func NewIterConfig(name string) *IterConfig

func (*IterConfig) Add added in v0.1.25

func (it *IterConfig) Add(configs ...InterNameConfig)

func (*IterConfig) Count added in v0.1.25

func (it *IterConfig) Count() int

func (*IterConfig) Log added in v0.1.25

func (it *IterConfig) Log(name string)

func (*IterConfig) Name added in v0.1.25

func (it *IterConfig) Name() string

func (*IterConfig) Next added in v0.1.25

func (it *IterConfig) Next() bool

func (*IterConfig) Reset added in v0.1.25

func (it *IterConfig) Reset()

func (*IterConfig) String added in v0.1.25

func (it *IterConfig) String(name string) string

type Limited added in v0.1.21

type Limited[T any] struct {
	Inter
	// contains filtered or unexported fields
}

func NewLimited added in v0.1.21

func NewLimited[T any](cloneFunc func(T) T) *Limited[T]

func (*Limited[T]) Add added in v0.1.21

func (i *Limited[T]) Add(items ...T)

func (*Limited[T]) Clone added in v0.1.21

func (i *Limited[T]) Clone() InterLimited[T]

func (*Limited[T]) Count added in v0.1.21

func (i *Limited[T]) Count() int

func (*Limited[T]) Item added in v0.1.21

func (i *Limited[T]) Item() T

func (*Limited[T]) Log added in v0.1.25

func (i *Limited[T]) Log(name string)

func (*Limited[T]) Next added in v0.1.21

func (i *Limited[T]) Next() bool

func (*Limited[T]) Reset added in v0.1.21

func (i *Limited[T]) Reset()

func (*Limited[T]) String added in v0.1.25

func (i *Limited[T]) String(name string) string

type NameConfig added in v0.1.25

type NameConfig struct {
	InterConfig
	// contains filtered or unexported fields
}

func NewNameConfig added in v0.1.25

func NewNameConfig(name string, inter InterConfig) *NameConfig

func (*NameConfig) Name added in v0.1.25

func (it *NameConfig) Name() string

Jump to

Keyboard shortcuts

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