Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToString(b []byte) string
- func GoRoutine(method func())
- func Guard()
- func IgnoreHostKeyCB(_ string, _ net.Addr, _ ssh.PublicKey) error
- type Any
- func (s Any[K]) Delete(items ...K) Any[K]
- func (s Any[K]) Difference(s2 Any[K]) Any[K]
- func (s Any[K]) Equal(s2 Any[K]) bool
- func (s Any[K]) Has(item K) bool
- func (s Any[K]) HasAll(items ...K) bool
- func (s Any[K]) HasAny(items ...K) bool
- func (s Any[K]) Insert(items ...K) Any[K]
- func (s Any[K]) Intersection(s2 Any[K]) Any[K]
- func (s Any[K]) IsSuperset(s2 Any[K]) bool
- func (s Any[K]) Len() int
- func (s Any[K]) List() []K
- func (s Any[K]) PopAny() (K, bool)
- func (s Any[K]) Union(s2 Any[K]) Any[K]
- type Empty
Constants ¶
View Source
const ( IsBare = true IsMirror = true GitUserName = "git" DestRemoteName = "dest" GitProto = "git" SshProto = "ssh" HttpProto = "http" HttpsProto = "https" TmpPathPattern = "repo" )
Variables ¶
View Source
var (
DefaultTmpPath = fmt.Sprintf("%s/%s/%s", os.TempDir(), TmpPathPattern, uuid.NewString())
)
Functions ¶
func BytesToString ¶
BytesToString converts byte slice to string without a memory allocation.
Types ¶
type Any ¶
type Any[K comparable] map[K]Empty
func AnyKeySet ¶
func AnyKeySet[K comparable, V any](theMap map[K]V) Any[K]
func NewAnySet ¶
func NewAnySet[K comparable](items ...K) Any[K]
func (Any[K]) Difference ¶
func (Any[K]) Intersection ¶
func (Any[K]) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
Click to show internal directories.
Click to hide internal directories.