serialization

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Groups

type Groups []string

Groups are used to determine what properties to load and serialize.

func (*Groups) Add

func (gs *Groups) Add(g ...string)

Add adds a group to the groups. If the group is already present it does nothing.

func (Groups) Equal

func (gs Groups) Equal(other Groups) bool

Equal reports if two Groups have the same entries.

func (Groups) HasGroup

func (gs Groups) HasGroup(g string) bool

HasGroup checks if the given group is present.

func (Groups) Hash

func (gs Groups) Hash() uint32

Hash returns a hash value for a Groups.

func (Groups) Match

func (gs Groups) Match(other Groups) bool

Match check if at least one of the given Groups is present.

Jump to

Keyboard shortcuts

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