{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ds\n\n## Types\n\n```go\ntype ExpMap[T any] struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc MakeExpMap[T any]() *ExpMap[T]\n```\n\n```go\nfunc (em *ExpMap[T]) Get(key string) (T, bool)\n```\n\n```go\nfunc (em *ExpMap[T]) Set(key string, value T, exp time.Time)\n```\n\n```go\ntype SyncMap[T any] struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc MakeSyncMap[T any]() *SyncMap[T]\n```\n\n```go\nfunc (sm *SyncMap[T]) Delete(key string)\n```\n\n```go\nfunc (sm *SyncMap[T]) Get(key string) T\n```\n\n```go\nfunc (sm *SyncMap[T]) GetEx(key string) (T, bool)\n```\n\n```go\nfunc (sm *SyncMap[T]) GetOrCreate(key string, createFn func() T) T\n```\n\n```go\nfunc (sm *SyncMap[T]) Set(key string, value T)\n```\n\n```go\nfunc (sm *SyncMap[T]) SetUnless(key string, value T) bool\n```\n\n```go\nfunc (sm *SyncMap[T]) TestAndSet(key string, newValue T, testFn func(T, bool) bool) bool\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/util/ds","name":"ds","synopsis":"","isRedistributable":true}
