Discover Packages
github.com/peteraba/cloudy-files
util
package
Version:
v0.0.0-...-71c93ef
Opens a new window with list of versions in this module.
Published: Sep 11, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Any is a special value that can be used to match any argument.
ErrorContains returns an assertion to check if the error contains the given string.
ErrorIs returns an assertion to check if the error is the target error.
func HasIntersection(sliceOne, sliceTwo []string ) bool
HasIntersection checks if two slices have any common elements.
RandomHex generates an n-length, random hex string.
Anything is a special type that can be used to match any argument.
type FileSize struct {
Unit string
Size int
}
FileSize represents a file size with units.
FileSizeFromSize returns a FileSize instance from the given size.
String returns the string representation of the file size.
type InAndOut struct {
Skip int
Calls int
In []interface{}
Out error
}
InAndOut represents the input arguments and return value of a method.
Spy is a test spy that can be used to record method calls and their arguments.
NewSpy creates a new Spy.
GetError returns a pre-defined error for a given method and arguments.
Register registers a method with its arguments and return value.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.