Skip to content

Commit

Permalink
refactor: deploy code
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Feb 9, 2023
1 parent a4b9ba0 commit a367d25
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,7 @@ func main() {
addr := ":2022"
fmt.Printf("listen at http://%s\n", addr)

// go func() {
// time.Sleep(time.Second * 2)
// openBrowser(addr)
// }()

play.Run(addr, &play.Option{
PlayMode: true,
})
}

// func openBrowser(url string) error {
// if !strings.HasPrefix(url, "http") {
// url = "http://" + url
// }
// switch runtime.GOOS {
// case "linux":
// return exec.Command("xdg-open", url).Start()
// case "windows":
// return exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
// case "darwin":
// return exec.Command("open", url).Start()
// default:
// return fmt.Errorf("unsupported platform")
// }
// }

0 comments on commit a367d25

Please sign in to comment.