moreatomic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 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.

type SnowflakeSet

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

func NewSnowflakeSet

func NewSnowflakeSet() *SnowflakeSet

NewSnowflakeSet creates a new SnowflakeSet.

func (*SnowflakeSet) Add

func (s *SnowflakeSet) Add(flake discord.Snowflake)

Add adds the passed discord.Snowflake to the set.

func (*SnowflakeSet) Contains

func (s *SnowflakeSet) Contains(flake discord.Snowflake) (ok bool)

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

func (*SnowflakeSet) Delete

func (s *SnowflakeSet) Delete(flake discord.Snowflake) bool

Delete deletes the passed discord.Snowflake 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