actualCombat

package
v0.0.0-...-8d22ec3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	CreateIterator() Iterator
}

type Iterator

type Iterator interface {
	HasNext() bool
	GetNext() *User
}

type User

type User struct {
	Name string
	Age  int
}

type UserCollection

type UserCollection struct {
	Users []*User
}

func (*UserCollection) CreateIterator

func (u *UserCollection) CreateIterator() Iterator

type UserIterator

type UserIterator struct {
	Index int
	Users []*User
}

func (*UserIterator) GetNext

func (u *UserIterator) GetNext() *User

func (*UserIterator) HasNext

func (u *UserIterator) HasNext() bool

Jump to

Keyboard shortcuts

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