File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ func cors(next http.Handler) http.Handler {
148148 next .ServeHTTP (w , r )
149149 })
150150}
151+
151152func startHTTPServer (inputChan chan string ) {
152153 handleSubmit := func (w http.ResponseWriter , r * http.Request ) {
153154 code , err := io .ReadAll (r .Body )
Original file line number Diff line number Diff line change @@ -18,10 +18,12 @@ import (
1818 "github.com/spf13/viper"
1919)
2020
21- var green lipgloss.Style
22- var red lipgloss.Style
23- var gray lipgloss.Style
24- var borderBox = lipgloss .NewStyle ().Border (lipgloss .RoundedBorder ())
21+ var (
22+ green lipgloss.Style
23+ red lipgloss.Style
24+ gray lipgloss.Style
25+ borderBox = lipgloss .NewStyle ().Border (lipgloss .RoundedBorder ())
26+ )
2527
2628type testModel struct {
2729 text string
Original file line number Diff line number Diff line change @@ -13,8 +13,10 @@ import (
1313 "golang.org/x/mod/semver"
1414)
1515
16- const repoOwner = "bootdotdev"
17- const repoName = "bootdev"
16+ const (
17+ repoOwner = "bootdotdev"
18+ repoName = "bootdev"
19+ )
1820
1921type VersionInfo struct {
2022 CurrentVersion string
You can’t perform that action at this time.
0 commit comments