Skip to content

Commit

Permalink
+ - embed assets reference
Browse files Browse the repository at this point in the history
  • Loading branch information
m0zgen committed Mar 30, 2023
1 parent ca7d57c commit e12ab08
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ import (
"time"
)

//go:embed assets/* templates/*
//go:embed templates/*
var templateFs embed.FS

//go:embed assets/*
var assetsFs embed.FS

var HostsPingStat = conf.HostsPingStat

const MergedDir = conf.MergedDir
Expand Down Expand Up @@ -175,7 +172,6 @@ func main() {

var dirStatus = strings.Contains(util.GetWorkDir(), ".")
util.TemplateFs = templateFs
util.AssetsFs = assetsFs

var wg = new(sync.WaitGroup)
wg.Add(4)
Expand Down
1 change: 0 additions & 1 deletion util/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"time"
)

var AssetsFs embed.FS
var TemplateFs embed.FS

// Web server handlers
Expand Down

0 comments on commit e12ab08

Please sign in to comment.