Documentation ¶
Index ¶
- func File(path string) ([]byte, error)
- func GenKey()
- func GetContentType(file *os.File) (string, error)
- func Hostname(ip net.IP) ([]string, error)
- func IP(r *http.Request) (net.IP, error)
- func UploadFile(dir string, uuid uint64, file multipart.File, fileHeader *multipart.FileHeader) error
- func WriteFile(path string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶
GetContentType returns content mime type of file
func UploadFile ¶
func UploadFile(dir string, uuid uint64, file multipart.File, fileHeader *multipart.FileHeader) error
UploadFile Create file from multpart form
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.