util

package
v0.0.0-...-ff179e1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRegularFile = errors.New("not a regular file")

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func CopyFile

func CopyFile(src, dst string) (caught try.Err)

func CreateDirIfNotExists

func CreateDirIfNotExists(dirpath string) (caught try.Err)

func DoesFileExist

func DoesFileExist(filepath string) bool

func FileSize

func FileSize(filePath string) (size int64, caught try.Err)

func HashPassword

func HashPassword(password string) (string, error)

func NewTmpdir

func NewTmpdir() (tmpdir string, caught try.Err)

func NormalizePath

func NormalizePath(sitePath string) string

func PurgeTmpdirs

func PurgeTmpdirs() (count int)

func TrimPath

func TrimPath(sitePath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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