util

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PDF  = "pdf"
	ZIP  = "zip"
	RM   = "rm"
	EPUB = "epub"
)

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

func DocPathToName added in v0.0.4

func DocPathToName(p string) (name string, ext string)

DocPathToName extracts the file name and file extension (without .) from a given path

func InSlice added in v0.0.22

func InSlice(req interface{}) []interface{}

Wraps a request in a slice (serialize as json array)

func IsFileTypeSupported added in v0.0.12

func IsFileTypeSupported(ext string) bool

func SplitPath

func SplitPath(path string) []string

func ToIOReader

func ToIOReader(source interface{}) (io.Reader, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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