jenkins

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT Imports: 1 Imported by: 0

README

Jenkins

Golang Jenkins hash

Build Status

Install

go get -u github.com/mtchavez/jenkins

Usage

Jenkins follows the Hash32 interface from the Go standard library

// Create a new hash
jenkhash := New()

// Write a string of bytes to hash
key := []byte("my-random-key")
length, err := jenkhash(key)

// Get uint32 sum of hash
sum := jenkhash.Sum32()

// Sum hash with byte string
sumbytes := jenkhash.Sum(key)

Testing

Uses Ginkgo for testing.

Run via make test which will run go test -cover

Documentation

Docs on godoc

License

Written by Chavez

Released under the MIT License: http://www.opensource.org/licenses/mit-license.php

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() hash.Hash32

Types

This section is empty.

Jump to

Keyboard shortcuts

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