jenkins

package module
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: MIT Imports: 1 Imported by: 4

README

Jenkins Hash

Latest Version Build Status Go Documentation Coverage Status Go Report Card

Golang Jenkins hash

Install

go get -u github.com/mtchavez/jenkins

Usage

Jenkins conforms to 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 and Gomega for testing.

Run via make test which will run go test -cover

Documentation

Docs on godoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() hash.Hash32

New returns a new jenkins hash conforming to hash.Hash32 interface

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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