loopexamples

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test_OneOf

func Test_OneOf(t *testing.T)

Types

type BreakKVLoop

type BreakKVLoop[K, V any] func() (key K, value V, ok bool, err error)

type BreakLoop

type BreakLoop[T any] func() (element T, ok bool, err error)

type KVLoop

type KVLoop[K, V any] func() (key K, value V, ok bool)

type Loop

type Loop[T any] func() (element T, ok bool)

type Role

type Role struct {
	// contains filtered or unexported fields
}

func (Role) Name

func (u Role) Name() string

type User

type User struct {
	// contains filtered or unexported fields
}

func (User) Age

func (u User) Age() int

func (User) Name

func (u User) Name() string

func (User) Roles

func (u User) Roles() []Role

Jump to

Keyboard shortcuts

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