Skip to content
Snippets Groups Projects
Commit 52d14530 authored by Mathilde Hertaas's avatar Mathilde Hertaas
Browse files

Initial Go server

parent f693490d
Branches
No related tags found
No related merge requests found
Pipeline #30820 canceled
go.mod 0 → 100644
main.go 0 → 100644
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment