utils

package
v0.0.0-...-6710e5c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	//FolderSuffix const
	FolderSuffix string = "/"
)

Variables

This section is empty.

Functions

func IsFolder

func IsFolder(path string) bool

IsFolder check if path is folder accept file path return bool if path is folder

func NewSHA1

func NewSHA1(data []byte) string

NewSHA1 NewSH2 calculate file sha1 accept file byte return sha1 string nolint:gosec

func NewSHA2

func NewSHA2(data []byte) string

NewSHA2 NewSH2 calculate file sha256 accept file byte return sha256 string nolint:gosec

func PlaceHolderFolder

func PlaceHolderFolder(path string) bool

PlaceHolderFolder check if folder include special sign accept folder path

Types

This section is empty.

Jump to

Keyboard shortcuts

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