diff --git a/go.mod b/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..c97508152f251320908be9f518d59a0a8b7d02fa --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.gvk.idi.ntnu.no/Mathilde/cloud + +go 1.22.2 diff --git a/main.go b/main.go new file mode 100644 index 0000000000000000000000000000000000000000..6eb74fc049572c9438768e1e0197db36b7a571d1 --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "fmt" + "net/http" +) + +func handler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf(w, "Hello, Cloud Technologies!") +} + +func main() { + http.HandleFunc("/", handler) + fmt.Println("Server running on port 8080...") + http.ListenAndServe(":8080", nil) +} \ No newline at end of file