File tree 5 files changed +342
-45
lines changed
5 files changed +342
-45
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ go 1.22.0
4
4
5
5
require (
6
6
github.com/gin-gonic/gin v1.9.1
7
- github.com/jilio/sqlitefs v0.2 .0
7
+ github.com/jilio/sqlitefs v0.0 .0
8
8
modernc.org/sqlite v1.29.2
9
9
)
10
10
@@ -45,3 +45,5 @@ require (
45
45
modernc.org/strutil v1.2.0 // indirect
46
46
modernc.org/token v1.1.0 // indirect
47
47
)
48
+
49
+ replace github.com/jilio/sqlitefs => ../../
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"database/sql"
5
+ "net/http"
5
6
6
7
"github.com/gin-gonic/gin"
7
8
"github.com/jilio/sqlitefs"
@@ -22,7 +23,7 @@ func main() {
22
23
23
24
r := gin .Default ()
24
25
r .GET ("/logo.png" , func (c * gin.Context ) {
25
- c .FileFromFS ("/images/sqlitefs.png" , sfs )
26
+ c .FileFromFS ("/images/sqlitefs.png" , http . FS ( sfs ) )
26
27
})
27
28
r .Run () // listen and serve on 0.0.0.0:8080
28
29
}
You can’t perform that action at this time.
0 commit comments