Debian Codegraph @

_test/server0.go

raw symbols SCIP
1 package main
2
3 import (
4 "fmt"
5 "net/http"
6 )
7
8 var v string = "v1.0"
9
10 func myHandler(w http.ResponseWriter, r *http.Request) {
11 fmt.Fprintln(w, "Welcome to my website!")
12 }
13
14 func main() {
15 http.HandleFunc("/", myHandler)
16 http.ListenAndServe(":8080", nil)
17 }