Help us shape the future of Go! Take the 2026 Go Developer Survey

aliasmethod

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 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 AliasMethod

type AliasMethod[T Item] struct {
	// contains filtered or unexported fields
}

func New

func New[T Item]() *AliasMethod[T]

func (*AliasMethod[T]) Add

func (m *AliasMethod[T]) Add(item T)

func (*AliasMethod[T]) Next

func (m *AliasMethod[T]) Next() int

func (*AliasMethod[T]) NextItem

func (m *AliasMethod[T]) NextItem() T

func (*AliasMethod[T]) Prepare

func (m *AliasMethod[T]) Prepare() error

type Item

type Item interface {
	GetWeight() int32
}

Jump to

Keyboard shortcuts

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