Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReadableDirectory ¶
IsReadableDirectory checks whether a readable directory exists at given path
func IsReadableFile ¶
IsReadableFile checks whether argument is a readable file
func LineSeparatedStrToMap ¶
LineSeparatedStrToMap converts a line-separated string to a Set of values
func WriteSliceToFile ¶
WriteSliceToFile writes a slice of strings to a file
Types ¶
type MultiMap ¶
type MultiMap[K comparable, V any] struct { // contains filtered or unexported fields }
MultiMap is a multi-map to which writes are go-routine safe
func NewMultiMap ¶
func NewMultiMap[K comparable, V any]() (m MultiMap[K, V])
NewMultiMap creates new MultiMap
type SafeMap ¶
type SafeMap[K comparable, V any] struct { Data map[K]V // contains filtered or unexported fields }
SafeMap is a map on which writes are goroutine-safe
func NewSafeMap ¶
func NewSafeMap[K comparable, V any]() (m SafeMap[K, V])
NewSafeMap creates new SafeMap
Click to show internal directories.
Click to hide internal directories.