utils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathExists

func PathExists(path string) (bool, error)

PathExists check whether the file or directory exists

Types

type Set

type Set map[string]bool

Set map template.

func (Set) Diff

func (s Set) Diff(other Set) []string

Diff returns the keys that are not in other

type ThreadSafeSet

type ThreadSafeSet struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ThreadSafeSet wrapper of Set.

func (*ThreadSafeSet) DiffAndEmplace

func (ts *ThreadSafeSet) DiffAndEmplace(other Set) []string

DiffAndEmplace returns the keys that are not in other and emplace the old set.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL