MCPcopy Index your code
hub / github.com/keploy/keploy / Hash

Function Hash

utils/utils.go:1351–1355  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

1349}
1350
1351func Hash(data []byte) string {
1352 hasher := sha256.New()
1353 hasher.Write(data)
1354 return hex.EncodeToString(hasher.Sum(nil))
1355}
1356
1357func GetLastDirectory() (string, error) {
1358 // Get the current working directory

Callers

nothing calls this directly

Calls 2

NewMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected