Discover Packages
github.com/the-dev-tools/dev-tools/packages/server
pkg
contenthash
package
Version:
v0.0.0-...-0b2e453
Opens a new window with list of versions in this module.
Published: Oct 7, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Hasher provides deterministic content hashing
HashBytes is a helper for byte slices (like file content)
HashString is a helper for simple string hashing (like paths)
HashStruct generates a deterministic SHA-256 hash of a struct.
It uses JSON marshaling (which sorts map keys) to ensure consistency.
Important: Pass a struct that ONLY contains the "Content" fields you want to deduct on.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.