Skip to content

fredrb/htable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go HTable

This is a Hash Table implementation in Go. It was developed for learning and experimenting purposes only, and shouldn't be used for anything serious.

Run the example:

make countwords

Usage

import (
	"github.com/fredrb/htable"
)

type stringKey = htable.StringKey

func main() {
    ht := htable.New()
    ht.Set(stringKey("key_1"), "Some value")
    ht.Set(stringKey("key_2"), 32)

    value, ok := ht.Get(S("key_1"))
    // ...
}

About

Hash Table implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published