Documentation
¶
Index ¶
- Variables
- func Bytes[T int64 | int](b T) string
- func GetCRC32(filePath string, writers ...io.Writer) (uint32, error)
- func GetCRC32Parallel(filePath string, hashThreads int, writers ...io.Writer) (uint32, error)
- func IsSSD(filePath string) bool
- func ToStrings[T ~string](in []T) []string
- type CheckCRC
- type CheckCRCBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCRCMismatch = errors.New("crc mismatch")
)
Functions ¶
func GetCRC32Parallel ¶
GetCRC32Parallel returns the crc32 checksum of a file using multiple goroutines.
Types ¶
type CheckCRC ¶
type CheckCRC struct {
// contains filtered or unexported fields
}
func (CheckCRC) VerifyCRC32 ¶
type CheckCRCBuilder ¶
type CheckCRCBuilder struct {
// contains filtered or unexported fields
}
func NewCheckCRCBuilder ¶
func NewCheckCRCBuilder(inputFile string, wantCRC uint32) *CheckCRCBuilder
func (*CheckCRCBuilder) Build ¶
func (cb *CheckCRCBuilder) Build() CheckCRC
func (*CheckCRCBuilder) WithHashThreads ¶
func (cb *CheckCRCBuilder) WithHashThreads(i int) *CheckCRCBuilder
func (*CheckCRCBuilder) WithParallelRead ¶
func (cb *CheckCRCBuilder) WithParallelRead(parallelRead bool) *CheckCRCBuilder
func (*CheckCRCBuilder) WithProgressBar ¶
func (cb *CheckCRCBuilder) WithProgressBar(bar progress.Progress) *CheckCRCBuilder
Click to show internal directories.
Click to hide internal directories.