hash

package
v0.0.0-...-886b66b Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hash contains the implementation of the hash plugin, which generates the deriveHash function.

The deriveHash function is returns a hash of the input object.

deriveHash(T) uint64

Supported types:

  • basic types
  • named structs
  • slices
  • maps
  • pointers to these types
  • and many more

Unsupported types:

  • chan
  • interface
  • function
  • unnamed structs, which are not comparable with the == operator

Example output can be found here: https://github.com/awalterschulze/goderive/tree/master/example/plugin/hash

This plugin has been tested thoroughly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New is a constructor for the hash code generator. This generator should be reconstructed for each package.

func NewPlugin

func NewPlugin() derive.Plugin

NewPlugin creates a new hash plugin. This function returns the plugin name, default prefix and a constructor for the hash code generator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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