idset

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Overview

Package idset handles comma separated list of int64.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdSet

type IdSet string

IdSet is a comma separated set of record Ids.

func New deprecated

func New(ids map[int64]bool) IdSet

New creates a new IdSet from given ids.

Deprecated: Use NewSet() instead.

func NewSet added in v0.15.0

func NewSet(ids map[int64]struct{}) IdSet

NewSet creates a new IdSet from given ids.

func (IdSet) Contains

func (s IdSet) Contains(id int64) bool

Contains returns true if this set contains id

func (IdSet) Map deprecated

func (s IdSet) Map() (map[int64]bool, error)

Map converts this set to a map.

Deprecated: Use Set() instead.

func (IdSet) Set added in v0.15.0

func (s IdSet) Set() (map[int64]struct{}, error)

Set converts this set to a go set.

Jump to

Keyboard shortcuts

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