extensions

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator is a validator for file extension

func NewValidator

func NewValidator(extensionsMatch, extensionsFilter []string) *Validator

NewValidator creates a new extension validator instance

func (*Validator) ValidatePath

func (e *Validator) ValidatePath(item string) bool

ValidatePath returns true if an extension is allowed by the validator

Jump to

Keyboard shortcuts

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