collections

package
v0.0.0-...-843cdbd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayOfMap

func ArrayOfMap[T ItemAble](dict map[string]T) []T

func MapOfArray

func MapOfArray[T ItemAble](arr []T) (map[string]T, *errors.Error)

func VerifyArray

func VerifyArray[T ItemAble](arr []T, notEmpty ...bool) *errors.Error

Types

type ItemAble

type ItemAble interface {
	GetCode() string
	Verify() *errors.Error
	GetSeq() int
}

type ItemArray

type ItemArray []ItemAble

func (ItemArray) Len

func (arr ItemArray) Len() int

func (ItemArray) Less

func (arr ItemArray) Less(i, j int) bool

func (ItemArray) Swap

func (arr ItemArray) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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