generics

package
v0.0.0-...-a95355e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual[Type comparable](t *testing.T, got, want Type)

func AssertFalse

func AssertFalse(t *testing.T, got bool)

func AssertNotEqual

func AssertNotEqual[Type comparable](t *testing.T, got, want Type)

func AssertTrue

func AssertTrue(t *testing.T, got bool)

Types

type Stack

type Stack[T any] struct {
	// contains filtered or unexported fields
}

func (*Stack[T]) IsEmpty

func (s *Stack[T]) IsEmpty() bool

func (*Stack[T]) Pop

func (s *Stack[T]) Pop() (T, bool)

func (*Stack[T]) Push

func (s *Stack[T]) Push(value T)

Jump to

Keyboard shortcuts

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