Documentation ¶
Index ¶
- func CheckMd5(path string) (string, error)
- func GetFileName(path string) string
- func GetFileSize(path string) (int64, error)
- func LoggingMiddleware(next http.Handler) http.Handler
- func WriteData(w http.ResponseWriter, v interface{})
- func WriteErr(w http.ResponseWriter, code, msg string)
- func WriteError(w http.ResponseWriter, code int, err error)
- func WriteJSON(w http.ResponseWriter, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileName ¶
func GetFileSize ¶
func WriteData ¶
func WriteData(w http.ResponseWriter, v interface{})
func WriteErr ¶
func WriteErr(w http.ResponseWriter, code, msg string)
func WriteError ¶
func WriteError(w http.ResponseWriter, code int, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.