Benign go Download

github.com/mhmtszr/concurrent-swiss-map v1.0.10

Basename is uppercase README.mdCaret or XOR operation token in source
SHA-256c09012eaa367f8c7f27e0ed01d0c4b88382badc7dc8bf70e858b86c0c43c3452

Evidence

Top-level YAML builds section .goreleaser.yml · lines 1–27
⋯9 lines
10 - go mod tidy
11
12builds:
13 - skip: true
14
⋯13 lines
At least four Markdown-style heading lines README.md · lines 3–25
3:7… urrent Swiss Map** is an open-source Go library that provides a high-performance, thread-safe generic concurrent hash map implementation designed to handle concurrent access efficiently. It's built with a focus on simplicity, speed, and reliability, making it a solid choice for scenarios where concurrent access to a hash map is crucial.
4
5Uses [dolthub/swiss](https://github.com/dolthub/swiss) map implementation under the hood.
6
7## Installation
8
9Supports 1.18+ Go versions because of Go Generics
10
11```
12go get github.com/mhmtszr/concurrent-swiss-map
13```
14
15## Usage
16
17New functions will be added soon...
⋯8 lines
imports encoding/json concurrent_swiss_map.go · lines 1–15
1package csmap
2
3import (
4 "context"
5 "encoding/json"
6 "sync"
7
8 "github.com/mhmtszr/concurrent-swiss-map/maphash"
9
10 "github.com/mhmtszr/concurrent-swiss-map/swiss"
11)
12
13type CsMap[K comparable, V any] struct {
14 hasher func(key K) uint64
15 shards []shar …
Go JSON unmarshal call concurrent_swiss_map.go · lines 222–242
222:27… V) (stop bool) {
223 tmp[key] = value
224 return false
225 })
226 return json.Marshal(tmp)
227}
228
229func (m *CsMap[K, V]) UnmarshalJSON(b []byte) error {
230 tmp := make(map[K]V, m.Count())
231
232 if err := json.Unmarshal(b, &tmp); err != nil {
233 return err
234 }
⋯8 lines
Go goroutine launch call concurrent_swiss_map.go · lines 242–253
242:70… ]) {
243 var wg sync.WaitGroup
244 wg.Add(len(m.shards))
245 for i := range m.shards {
246 go func(i int) {
247 defer wg.Done()
248
⋯5 lines

Showing the top 5 files — 3 more files (16 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.