fileserver

package module
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveType

func ArchiveType(File *[]byte) string

func CloneDirectory added in v0.0.2

func CloneDirectory(origin, destiny string)

func CreateFileInServer

func CreateFileInServer(r *http.Request, o *model.Object, user_area_file string, form_data map[string]string) ([]map[string]string, error)

func MultiPartFileForm added in v0.0.9

func MultiPartFileForm(path_files, field_name string, files_name []string, form map[string]string) (body *bytes.Buffer, content_type string, err error)

path_files ej: ./test_files field_name ej: endoscopia, voucher, foto_mascota, foto_usuario files_name ej: "gatito.jpg, perro.png"

Types

type FileServer added in v0.0.13

type FileServer struct{}

func (FileServer) DeleteFile added in v0.0.14

func (FileServer) DeleteFile(path string) error

func (FileServer) ReadFile added in v0.0.14

func (FileServer) ReadFile(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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