mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
18 lines
325 B
Go
18 lines
325 B
Go
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"net/http"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
|
||
|
|
fmt.Fprintf(w, "Welcome to my website!")
|
||
|
|
})
|
||
|
|
|
||
|
|
fs := http.FileServer(http.Dir("static/"))
|
||
|
|
http.Handle("/static/", http.StripPrefix("/static/", fs))
|
||
|
|
|
||
|
|
http.ListenAndServe(":80", nil)
|
||
|
|
}
|