valueobject

package
v0.0.0-...-a2883fb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XLSX string = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
	XLSM string = "application/vnd.ms-excel.sheet.macroEnabled.12"
	XLS  string = "application/vnd.ms-excel"
	CSV  string = "application/csv"
	PDF  string = "application/pdf"
	DOC  string = "application/msword"
	DOCX string = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
	RTF  string = "application/rtf"

	JPG   string = "image/jpg"
	JPEG  string = "image/jpeg"
	PNG   string = "image/png"
	JFIF  string = "image/jfif"
	PJPEG string = "image/pjeg"
	PJP   string = "image/pjp"
	GIF   string = "image/gif"
	SVG   string = "image/svg"
)

*

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

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

func NewFileType

func NewFileType(val string) (FileType, error)

func (FileType) IsAllowedExtension

func (f FileType) IsAllowedExtension() bool

func (FileType) String

func (f FileType) String() string

func (FileType) Type

func (f FileType) Type() string

Jump to

Keyboard shortcuts

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