ids

package
v0.164.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ids provides id validation code used my multiple pipes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDs

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

IDs is the IDs type.

func New

func New(kind string) IDs

New IDs.

func (IDs) Inc

func (i IDs) Inc(id string)

Inc increment the counter of the given id.

func (IDs) Validate

func (i IDs) Validate() error

Validate errors if there are any ids with counter > 1.

Jump to

Keyboard shortcuts

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