Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fredrb/htable

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.