utils

package
v0.0.9-beta Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package utils adds support functionality for helper directory.

Index

Constants

This section is empty.

Variables

View Source
var (
	ReExactPath, _ = regexp.Compile(`^(?:\/[^\/]+)+\/[^\/]+(\.[^.]+)$`)
	// ReExactExt regex exact extension foo.abc.def.
	ReExactExt = regexp.MustCompile(`\.([A-Za-z0-9]{2,5}($|\b\?))`)
)

Functions

func IgnoreExtension

func IgnoreExtension(fullPath string) bool

func IsHiddenFile

func IsHiddenFile(filename string) (bool, error)

Types

type ByteSize

type ByteSize float64
const (
	KB ByteSize = 1 << (10 * iota)
	MB
	GB
)

func (ByteSize) String

func (b ByteSize) String() string

Jump to

Keyboard shortcuts

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