kinds

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: CC0-1.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T []kind.T

func FromIntSlice

func FromIntSlice(is []int) (k T)

func (T) Clone

func (ar T) Clone() (c T)

Clone makes a new kind.T with the same members.

func (T) Contains

func (ar T) Contains(s kind.T) bool

Contains returns true if the provided element is found in the kinds.T.

Note that the request must use the typed kind.T or convert the number thus. Even if a custom number is found, this codebase does not have the logic to deal with the kind so such a search is pointless and for which reason static typing always wins. No mistakes possible with known quantities.

func (T) Equals

func (ar T) Equals(t1 T) bool

Equals checks that the provided kind.T matches.

func (T) ToArray

func (ar T) ToArray() (a array.T)

ToArray converts to the generic array.T type ([]interface{})

Jump to

Keyboard shortcuts

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