util

package
v0.0.0-...-77c78fe Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(path string) string

AbsolutePath returns the absolute path to the provided path

func CheckExtensions

func CheckExtensions(file string, ext *regexp.Regexp) bool

CheckExtensions checks if the found file has an extension matching the provided valid ones.

func FileValid

func FileValid(info os.FileInfo, path string, exts *regexp.Regexp) bool

FileValid checks wether the found directory or file is not a directory as well if the specified file extension is correct

func HashFilename

func HashFilename(name string) string

func RemoveWhitespaces

func RemoveWhitespaces(str string) string

func ValidatePagination

func ValidatePagination(offset, limit string) ([2]int, error)

func WorkingDirectoryPath

func WorkingDirectoryPath(p string) string

WorkingDirectoryPath returns the absolute path to the provided path

Types

This section is empty.

Jump to

Keyboard shortcuts

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