slice

package
v0.0.0-...-4311a38 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxStepItem

type MaxStepItem struct {
	Name       string `json:"name"`
	Value      string `json:"value"`
	Count      int    `json:"count"`
	MaxCount   int    `json:"max_count"`
	MaxStep    int    `json:"max_step"`
	SortNumber int    `json:"sort_number"`
	// contains filtered or unexported fields
}

func NewMaxStepItem

func NewMaxStepItem(name string, value string, maxCount int) *MaxStepItem

func NewMaxStepItemWithStep

func NewMaxStepItemWithStep(name string, value string, maxCount, MaxStep int) *MaxStepItem

func (*MaxStepItem) Info

func (i *MaxStepItem) Info() string

type MaxStepSlice

type MaxStepSlice []*MaxStepItem

func NewMaxStepSlice

func NewMaxStepSlice() *MaxStepSlice

func (*MaxStepSlice) Add

func (s *MaxStepSlice) Add(item *MaxStepItem)

func (*MaxStepSlice) ChooseItem

func (s *MaxStepSlice) ChooseItem() (*MaxStepItem, error)

func (*MaxStepSlice) ForEach

func (s *MaxStepSlice) ForEach(callback func(*MaxStepItem))

Jump to

Keyboard shortcuts

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