Documentation
¶
Index ¶
- Constants
- func DownloadFile(response http.ResponseWriter, request *http.Request)
- func UploadFile(response http.ResponseWriter, request *http.Request)
- func WriteResponse(response http.ResponseWriter, message interface{}, statusCode int)
- func WriteSimpleResponse(response http.ResponseWriter, message string, statusCode int)
- type SimpleResponse
Constants ¶
View Source
const (
UPLOAD_DIR = "uploads"
)
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(response http.ResponseWriter, request *http.Request)
func UploadFile ¶
func UploadFile(response http.ResponseWriter, request *http.Request)
func WriteResponse ¶
func WriteResponse(response http.ResponseWriter, message interface{}, statusCode int)
func WriteSimpleResponse ¶
func WriteSimpleResponse(response http.ResponseWriter, message string, statusCode int)
Types ¶
type SimpleResponse ¶
type SimpleResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.