util

package
v0.0.0-...-18e7427 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, a interface{}, b interface{})

func ToGoTypeName

func ToGoTypeName(name string) string

func ToMinecraftName

func ToMinecraftName(name string) string

func UpperTheFirst

func UpperTheFirst(word string) string

Types

type Iterator

type Iterator[T any] interface {
	Next() T
	HasNext() bool
}

type IteratorFunc

type IteratorFunc[T any] func() (T, bool)

func (IteratorFunc[T]) HasNext

func (f IteratorFunc[T]) HasNext() bool

func (IteratorFunc[T]) Next

func (f IteratorFunc[T]) Next() T

type Queue

type Queue[T any] []T

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Len

func (q *Queue[T]) Len() int

func (*Queue[T]) Pop

func (q *Queue[T]) Pop() (v T)

func (*Queue[T]) Push

func (q *Queue[T]) Push(v T)

Jump to

Keyboard shortcuts

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