groups

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: EUPL-1.2 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Key   string
	Query string
}

func NewGroup

func NewGroup(query string) *Group

type Groups

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

Simple struct to parse a string into a map of groups with key is cn so it will be unique struct can add and struct can be changed back into a string.

func NewGroups

func NewGroups() *Groups

func (*Groups) Add

func (gs *Groups) Add(other *Groups) bool

func (*Groups) AddFromString

func (gs *Groups) AddFromString(s string)

func (*Groups) AddFromStrings

func (gs *Groups) AddFromStrings(l []string)

func (Groups) AsString

func (gs Groups) AsString() string

func (*Groups) DeleteByKey

func (gs *Groups) DeleteByKey(key string) bool

func (*Groups) DeleteByQuery

func (gs *Groups) DeleteByQuery(query string) bool

func (Groups) Keys

func (gs Groups) Keys() []string

func (Groups) Queries

func (gs Groups) Queries() []string

Jump to

Keyboard shortcuts

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