feat: initial commit
This commit is contained in:
17
examples/wails3_init_updater/cmd/mockupdateserver/main.go
Normal file
17
examples/wails3_init_updater/cmd/mockupdateserver/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/Eriyc/rules_wails/examples/wails3_init_updater/mockupdateserver"
|
||||
)
|
||||
|
||||
func main() {
|
||||
server := &http.Server{
|
||||
Addr: "127.0.0.1:18765",
|
||||
Handler: mockupdateserver.NewHandler(),
|
||||
}
|
||||
log.Println("mock updater server listening on http://127.0.0.1:18765")
|
||||
log.Fatal(server.ListenAndServe())
|
||||
}
|
||||
Reference in New Issue
Block a user