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