Seriously, why did I still have the duck image embedded twice when only the fs embed was used?
This commit is contained in:
parent
9afb2d36f0
commit
1169cd74a0
3 changed files with 4 additions and 9 deletions
4
main.go
4
main.go
|
@ -34,9 +34,6 @@ import (
|
|||
//go:embed frontend-noscript
|
||||
// var nojsFS embed.FS
|
||||
|
||||
//go:embed duck.webp
|
||||
var defaultDuck string
|
||||
|
||||
//go:embed duck.webp
|
||||
var duckFS embed.FS
|
||||
|
||||
|
@ -131,7 +128,6 @@ func newServer() {
|
|||
}
|
||||
public := webpublic.New(
|
||||
fmt.Sprintf(":%v", config.GlobalConfig.General.PrivatePort),
|
||||
&defaultDuck,
|
||||
duckFS,
|
||||
)
|
||||
go func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue