file

package
v0.0.0-...-a55ffd3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(path string) ([]string, error)

ReadDir returns list of files in a given path

Types

type File

type File struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

func Upload

func Upload(file io.Reader, path string, realName string) (*File, error)

Upload handles uploading files like png, jpg, etc to server

Jump to

Keyboard shortcuts

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