From c379d0333b7cae52911a5fada39c9fa8adc55ac6 Mon Sep 17 00:00:00 2001 From: Abdhilahi Wabwire <124460109+AbdhilahiRWabwire@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:06:29 -0700 Subject: [PATCH] Fix Errors --- .github/workflows/go.yml | 5 +---- server/go.mod | 2 +- server/source/main.go | 10 ++-------- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d51b193..fdabc99 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -21,10 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5.2.0 with: - go-version: '1.20' - - - name: Tidy Package - run: cd ./server && go mod tidy && cd ../ + go-version: '1.23' - name: Build Package run: GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go diff --git a/server/go.mod b/server/go.mod index 28da21e..7d7f79f 100644 --- a/server/go.mod +++ b/server/go.mod @@ -1,3 +1,3 @@ module data-interchange-server -go 1.23.4 +go 1.23 diff --git a/server/source/main.go b/server/source/main.go index 90a5381..f1100c6 100755 --- a/server/source/main.go +++ b/server/source/main.go @@ -1,15 +1,9 @@ package main import ( - "fmt" - "net/http" + "data-interchange-server/source/network" ) -const port string = ":8080" - -var fileServer http.Handler = http.FileServer(http.Dir("./source")) - func main() { - fmt.Println("Serving on Port: 8080") - http.ListenAndServe(port, fileServer) + network.ServeWebApplication() }