utils

package
v2.0.0-...-e7d94e1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringBoolCMap

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

StringBoolCMap is a concurrent map implementation of map[string]bool

func NewStringBoolCMap

func NewStringBoolCMap() *StringBoolCMap

func (*StringBoolCMap) Delete

func (m *StringBoolCMap) Delete(key string)

Delete map value

func (*StringBoolCMap) Get

func (m *StringBoolCMap) Get(key string) bool

Get map value or default

func (*StringBoolCMap) Set

func (m *StringBoolCMap) Set(key string, value bool)

Set map value

type StringInt64CMap

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

StringInt64CMap is a concurrent map implementation of map[string]int64

func NewStringInt64CMap

func NewStringInt64CMap() *StringInt64CMap

func (*StringInt64CMap) Delete

func (m *StringInt64CMap) Delete(key string)

Delete map value

func (*StringInt64CMap) Get

func (m *StringInt64CMap) Get(key string) int64

Get map value or default

func (*StringInt64CMap) Set

func (m *StringInt64CMap) Set(key string, value int64)

Set map value

Jump to

Keyboard shortcuts

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