Skip to content

Commit

Permalink
refactor: bump to optimized fl-configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Mar 29, 2024
1 parent 018fafb commit cda62c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.1

require (
github.com/a-h/templ v0.2.543
github.com/darklab8/fl-configs v0.17.0
github.com/darklab8/fl-configs v0.17.1
github.com/darklab8/go-typelog v0.6.0
github.com/darklab8/go-utils v0.12.0
github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/darklab8/fl-configs v0.16.0 h1:eFv++nj/xZt8oc4foRshkVbtR64Bk0XDKSVXH1
github.com/darklab8/fl-configs v0.16.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.17.0 h1:WGnyR6s9dyOMhPIhf7DzYVFwO3VHexhWi4RLGW5+z1Y=
github.com/darklab8/fl-configs v0.17.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/fl-configs v0.17.1 h1:S12fnKenPCC4sEeSR8ifxEWRpt4H7UqjOHUFNm4wU5U=
github.com/darklab8/fl-configs v0.17.1/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY=
github.com/darklab8/go-typelog v0.6.0 h1:Ci8imc7ScXiy5e1qMgf46NyJjrqNLPoIE1gbVe7bxl4=
github.com/darklab8/go-typelog v0.6.0/go.mod h1:AwwOf3dkp/tpevHFNbkB+PbwlDrUUgO1CVFkEnj+q5w=
github.com/darklab8/go-utils v0.12.0 h1:LxsG3yVNf9W4xyV+tHPOaZB2ewItgM/1BzOXyKFvofs=
Expand Down
10 changes: 8 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ func main() {
case Web:
var fs *builder.Filesystem
time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) {
fs = linker.NewLinker().Link().BuildAll()
})
var linked_build *builder.Builder
time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) {
linked_build = linker.NewLinker().Link()
}, time_measure.WithMsg("linking stuff"))
time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) {
fs = linked_build.BuildAll()
}, time_measure.WithMsg("building stuff"))
}, time_measure.WithMsg("total time for web"))
web.NewWeb(fs).Serve()
}

Expand Down

0 comments on commit cda62c4

Please sign in to comment.