mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
19 lines
344 B
JavaScript
19 lines
344 B
JavaScript
export default `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)
|
|
}
|
|
`;
|