htexpire

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: MIT Imports: 4 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashTable

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

HashTable hash table with mutex locker

func New

func New() *HashTable

New new a hash table

func (*HashTable) Get

func (ht *HashTable) Get(key string) (bool, error)

Get get specified key in hash table

func (*HashTable) Remove

func (ht *HashTable) Remove(key string) error

Remove remove specified key

func (*HashTable) Set

func (ht *HashTable) Set(key string) error

Set add a new item in hash table

func (*HashTable) Size

func (ht *HashTable) Size() int

Size get the size of hash table

Jump to

Keyboard shortcuts

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