idset

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 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

func New(ids map[int64]bool) IdSet

New 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

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

Map converts this set to a map.

Jump to

Keyboard shortcuts

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