kinds

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

func IsPrivileged

func IsPrivileged(k ...kind.T) (is bool)

Types

type T

type T []kind.T

func FromIntSlice

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

func (T) Clone

func (k T) Clone() (c T)

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

func (T) Contains

func (k 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 (k T) Equals(t1 T) bool

Equals checks that the provided kind.T matches.

func (T) ToArray

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

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

func (T) ToUint16 added in v1.0.12

func (k T) ToUint16() (o []uint16)

Jump to

Keyboard shortcuts

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