modulohash: Index | Files

package modulohash

import ""

Package modulohash maps a string into a list using CRC32.


Package Files


type ModuloHash Uses

type ModuloHash struct {
    // contains filtered or unexported fields

ModuloHash is the list of targets.

func New Uses

func New(targets []string) (*ModuloHash, error)

New is an alias to NewModuloHash.

func NewModuloHash Uses

func NewModuloHash(targets []string) (*ModuloHash, error)

NewModuloHash will create a new ModuloHash.

func (*ModuloHash) Find Uses

func (h *ModuloHash) Find(s string) (string, error)

Find will fairly determine a target value in the array Targets by using the crc32 hash value mod'd with the number of targets in the target list.

Package modulohash imports 3 packages (graph). Updated 2017-02-23. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).