Skip to content

Commit

Permalink
Fix Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Jan 8, 2025
1 parent 92a158a commit c379d03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module data-interchange-server

go 1.23.4
go 1.23
10 changes: 2 additions & 8 deletions server/source/main.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
package main

import (
"fmt"
"net/http"
"data-interchange-server/source/network"

Check failure on line 4 in server/source/main.go

View workflow job for this annotation

GitHub Actions / build

package data-interchange-server/source/network is not in std (/opt/hostedtoolcache/go/1.23.4/x64/src/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()
}

0 comments on commit c379d03

Please sign in to comment.