utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileTypeToString

func FileTypeToString(f FileType) string

Types

type FileType

type FileType uint
const (
	GIF FileType = iota
	JPEG
	PNG
	TIFF
	WEBP
	UNSUPPORTED
)

func StringToFileType

func StringToFileType(s string) FileType

RETURNS utils.UNSUPPORTED IF FILETYPE IS NOT VALID

Jump to

Keyboard shortcuts

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