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))
Click to show internal directories.
Click to hide internal directories.