From 67a1723f7c9e029cc9c89e080492695213a1a2c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20P=C3=BAblio?= Date: Thu, 1 Feb 2024 01:21:50 -0300 Subject: [PATCH] Update .gitignore and go.mod files --- .gitignore | 2 ++ go.mod | 3 ++- go.sum | 3 +++ internal/files/processor.go | 2 -- resources/data.db | Bin 12288 -> 12288 bytes 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c44a787..165bebc 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.so *.dylib .idea/ + .vscode/ # Test binary, built with `go test -c` *.test @@ -23,3 +24,4 @@ go.work /.idea/ +/.vscode/ diff --git a/go.mod b/go.mod index 31116d1..017742d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/aidarkhanov/nanoid v1.0.8 github.com/gin-gonic/gin v1.9.1 - github.com/mattn/go-sqlite3 v1.14.20 + github.com/mattn/go-sqlite3 v1.14.21 ) require ( @@ -20,6 +20,7 @@ require ( github.com/goccy/go-json v0.10.2 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/knz/go-libedit v1.10.1 // indirect github.com/leodido/go-urn v1.3.0 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect diff --git a/go.sum b/go.sum index 589d395..195d310 100644 --- a/go.sum +++ b/go.sum @@ -41,6 +41,7 @@ github.com/kisielk/sqlstruct v0.0.0-20201105191214-5f3e10d3ab46/go.mod h1:yyMNCy github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/knz/go-libedit v1.10.1 h1:0pHpWtx9vcvC0xGZqEQlQdfSQs7WRlAjuPvk3fOZDCo= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/leodido/go-urn v1.3.0 h1:jX8FDLfW4ThVXctBNZ+3cIWnCSnrACDV73r76dy0aQQ= github.com/leodido/go-urn v1.3.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= @@ -48,6 +49,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-sqlite3 v1.14.20 h1:BAZ50Ns0OFBNxdAqFhbZqdPcht1Xlb16pDCqkq1spr0= github.com/mattn/go-sqlite3 v1.14.20/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/mattn/go-sqlite3 v1.14.21 h1:IXocQLOykluc3xPE0Lvy8FtggMz1G+U3mEjg+0zGizc= +github.com/mattn/go-sqlite3 v1.14.21/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= diff --git a/internal/files/processor.go b/internal/files/processor.go index 78b47d4..a6850a2 100644 --- a/internal/files/processor.go +++ b/internal/files/processor.go @@ -7,7 +7,6 @@ import ( "encoding/base64" "encoding/hex" "errors" - "fmt" "github.com/aidarkhanov/nanoid" "log" "os" @@ -93,7 +92,6 @@ func (p *Processor) GetFileContentAndName(id string) ([]byte, string, error) { decodedBytes, err := base64.StdEncoding.DecodeString(file) if err != nil { - fmt.Println("Error decoding base64:", err) return nil, "", err } diff --git a/resources/data.db b/resources/data.db index 85efb0a3d90c2fb18fbcd70875f6a13d215084a7..9a84c3ef26ba1e317c6e5c3a511462b73a1139db 100644 GIT binary patch delta 638 zcmZvaL2DC16vsEFLE1y3w~D2#V0)2W-<$VlXJ)}eRRXC*unGY$&F<_>l9Jk#B#61B z9=t2P_6v9{egr>^U&D!_v?cRk;4#eq_x}Hx^WJ&y>%-dKx9u0Ty{q2$=3TdW8S2s1 z+5OGMr?rOK?MxCq;#cF5ed7+>trpF6Tx?2@t??k58UGF{xnGoB`mx-cXC(&g@jaem=>RexD4j zrGtavM}8-7u$|9@^4@7+6Q-b2+A?ThX|-W#uCp1YH$J1FWB>pF delta 436 zcma)&y-LGS7>1jM40T9!E7YMN{(zkLec$;_z(EAJf=h5T=j0?(LF~|?xU@xZR=f%) z5pTl_5U;??FmB@1cX+0Ec;0tWF3QJ2(0|%I4*GB9OA<}v@A&I|WB3uz%P=YiY*c~F z95%~dH!8M9H@XqfcB&e#r9}s4LRh( zFs+