20 lines
614 B
Go
20 lines
614 B
Go
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)
|
|
}
|