objecthash

package
v0.0.0-...-455b981 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonJSONHash

func CommonJSONHash(j string) ([hashLength]byte, error)

CommonJSONHash computes the ObjectHash of a Common JSON object.

func CommonJSONify

func CommonJSONify(o interface{}) (interface{}, error)

Convert an object to the Common JSON equivalent

func ObjectHash

func ObjectHash(o interface{}) ([hashLength]byte, error)

ObjectHash returns the hash of a subset of allowed Go objects.

Types

type Set

type Set []interface{}

Set represents an unordered, unduplicated list of objects. FIXME: if What You Hash Is What You Get, then this needs to be safe to use as a set. Note: not actually safe to use as a set

Jump to

Keyboard shortcuts

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