util

package
v0.0.0-...-51de09c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHashAlgorithmNotSupported = errors.New("hash algorithm not supported")
)
View Source
var (
	ErrPathExistNotFolder = errors.New("path exist not folder")
)

Functions

func Command

func Command() *cobra.Command

func EnsureFolderExist

func EnsureFolderExist(path string) (create bool, err error)

func Hash

func Hash(input io.Reader, algorithm string) (result []byte, err error)

func NewChunkWriter

func NewChunkWriter(chunkSize int, ctor func(int) (io.WriteCloser, error)) io.WriteCloser

Types

This section is empty.

Jump to

Keyboard shortcuts

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