Debian Codegraph @

_test/server2.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 main() {
11
12 myHandler := func(w http.ResponseWriter, r *http.Request) {
13 fmt.Fprintln(w, "Welcome to my website!")
14 }
15
16 http.HandleFunc("/", myHandler)
17 http.ListenAndServe(":8080", nil)
18 }