utils

package
v0.0.0-...-e86fd7f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeenMap

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

func NewSeenMap

func NewSeenMap() SeenMap

func (SeenMap) Seen

func (seen SeenMap) Seen(item string) bool

TODO: add lock to avoid race condition

func (SeenMap) Set

func (seen SeenMap) Set(k, v string)

func (SeenMap) Value

func (seen SeenMap) Value(k string) string

The caller should make sure that key is in the map.

Jump to

Keyboard shortcuts

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