MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / QuickHashString

Function QuickHashString

pkg/util/utilfn/utilfn.go:1046–1050  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1044}
1045
1046func QuickHashString(s string) string {
1047 h := fnv.New64a()
1048 h.Write([]byte(s))
1049 return base64.RawURLEncoding.EncodeToString(h.Sum(nil))
1050}
1051
1052func SendWithCtxCheck[T any](ctx context.Context, ch chan<- T, val T) bool {
1053 select {

Callers 2

fetchBookmarkSuggestionsFunction · 0.92
fetchFileSuggestionsFunction · 0.92

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected