moreatomic

package
v3.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildIDSet

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

func NewGuildIDSet

func NewGuildIDSet() *GuildIDSet

NewGuildIDSet creates a new GuildIDSet.

func (*GuildIDSet) Add

func (s *GuildIDSet) Add(flake discord.GuildID)

Add adds the passed discord.GuildID to the set.

func (*GuildIDSet) Contains

func (s *GuildIDSet) Contains(flake discord.GuildID) (ok bool)

Contains checks whether the passed discord.GuildID is present in the set.

func (*GuildIDSet) Delete

func (s *GuildIDSet) Delete(flake discord.GuildID) bool

Delete deletes the passed discord.GuildID from the set and returns true if the element is present. If not, Delete is a no-op and returns false.

Jump to

Keyboard shortcuts

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