status

package
v0.0.0-...-2ebbeb6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status uint

Status represents a set of status flags, using a uint64 as the underlying type.

const Unset Status = 0

Unset is the default value for Status, representing no status.

func (*Status) Add

func (s *Status) Add(ss Status)

Add adds a specific status (ss) to the current status.

func (*Status) Clear

func (s *Status) Clear()

Clear removes all statuses from the current status.

func (*Status) Has

func (s *Status) Has(ss Status) bool

Has checks if a specific status (ss) is present in the current status.

func (*Status) Remove

func (s *Status) Remove(ss Status)

Remove removes a specific status (ss) from the current status.

Jump to

Keyboard shortcuts

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