init
This commit is contained in:
19
main.go
Normal file
19
main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello, World!")
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Hello, World!")
|
||||
})
|
||||
http.HandleFunc("/images", func(w http.ResponseWriter, r *http.Request) {})
|
||||
http.HandleFunc("/models", func(w http.ResponseWriter, r *http.Request) {})
|
||||
http.HandleFunc("/tasks", func(w http.ResponseWriter, r *http.Request) {})
|
||||
http.HandleFunc("/users", func(w http.ResponseWriter, r *http.Request) {})
|
||||
http.HandleFunc("/tags", func(w http.ResponseWriter, r *http.Request) {})
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
Reference in New Issue
Block a user