diff --git a/go.mod b/go.mod index 6d5cfcb..2b6c483 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module resource_manager +module git.bbr-dev.info/brajkovic/resource_manager go 1.17 diff --git a/handlers.go b/handlers.go index b96b80b..b36a025 100644 --- a/handlers.go +++ b/handlers.go @@ -3,10 +3,10 @@ package main import ( "bytes" "encoding/base64" + "git.bbr-dev.info/brajkovic/resource_manager/resource" "github.com/gin-gonic/gin" "log" "net/http" - "resource_manager/resource" "strings" ) @@ -14,9 +14,9 @@ type LegacySave struct { Content string `json:"content"` Path string `json:"path"` Properties struct { - Height int `json:"height"` - Overwrite bool `json:"overwrite"` - MimeType string `json:"mimeType"` + Height int `json:"height"` + Overwrite bool `json:"overwrite"` + MimeType string `json:"mimeType"` } `json:"properties"` } diff --git a/resource/impl.go b/resource/impl.go index 8a22250..2d43fdf 100644 --- a/resource/impl.go +++ b/resource/impl.go @@ -4,6 +4,7 @@ import ( "bytes" "context" "errors" + "git.bbr-dev.info/brajkovic/resource_manager/cache" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" @@ -13,7 +14,6 @@ import ( "net/url" "os" "path/filepath" - "resource_manager/cache" "strconv" "strings" "sync" diff --git a/resource/manager.go b/resource/manager.go index a50f512..e2f8b33 100644 --- a/resource/manager.go +++ b/resource/manager.go @@ -3,9 +3,9 @@ package resource import ( "bytes" "context" + "git.bbr-dev.info/brajkovic/resource_manager/cache" "log" "os" - "resource_manager/cache" "strings" "time" )