organise stuff better

This commit is contained in:
Henrique Dias
2016-10-22 11:47:49 +01:00
parent 4c8e023e9f
commit ae33825182
11 changed files with 407 additions and 403 deletions

View File

@@ -16,7 +16,13 @@ import (
)
// processPUT is used to update a file that was edited
func processPUT(w http.ResponseWriter, r *http.Request, c *config.Config, u *config.User, i *file.Info) (int, error) {
func processPUT(
w http.ResponseWriter,
r *http.Request,
c *config.Config,
u *config.User,
i *file.Info,
) (int, error) {
var (
data map[string]interface{}
file []byte