Skip to content

Commit

Permalink
build: Remove gorilla/mux
Browse files Browse the repository at this point in the history
build: Remove gorilla/mux
  • Loading branch information
kroese authored Nov 1, 2023
2 parents 5706239 + f11a8f3 commit dae9fd5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module qemu-host

go 1.21.3

require github.com/gorilla/mux v1.8.0
3 changes: 1 addition & 2 deletions src/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=

11 changes: 5 additions & 6 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"net/http"
"math/rand"
"encoding/binary"
"github.com/gorilla/mux"
)

type REQ struct {
Expand Down Expand Up @@ -54,12 +53,12 @@ func main() {

flag.Parse()

r := mux.NewRouter()
r.HandleFunc("/", home)
r.HandleFunc("/read", read)
r.HandleFunc("/write", write)
router := http.NewServeMux()
router.HandleFunc("/", home)
router.HandleFunc("/read", read)
router.HandleFunc("/write", write)

go http.ListenAndServe(*ApiPort, r)
go http.ListenAndServe(*ApiPort, router)

listener, err := net.Listen("tcp", *ListenAddr)

Expand Down

0 comments on commit dae9fd5

Please sign in to comment.