utils

package
v0.0.0-...-f33ab34 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveElement

func RemoveElement(sl []string, str string) []string

RemoveElement - Remove a specific string from a list of strings

func SortAsPerTblDeps

func SortAsPerTblDeps(tblLst []string) ([]string, error)

SortAsPerTblDeps - sort transformer result table list based on dependencies (using CVL API) tables to be used for CRUD operations

Types

type Bits

type Bits uint8

Bits is a set of 8 bit flags.

func (Bits) Empty

func (b Bits) Empty() bool

Empty returns true if no bits are set in b

func (Bits) Has

func (b Bits) Has(flags Bits) bool

Has returns true if all flags are present in b

func (Bits) HasAny

func (b Bits) HasAny(flags Bits) bool

HasAny returns true if any of the flags is present in b

func (*Bits) Reset

func (b *Bits) Reset()

Reset operations clears all bits from b

func (*Bits) Set

func (b *Bits) Set(flags Bits)

Set operations sets given bit flags into b

func (Bits) String

func (b Bits) String() string

func (*Bits) Unset

func (b *Bits) Unset(flags Bits)

Unset operations clears given bit flags from b

Jump to

Keyboard shortcuts

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