pye/main.go

36 lines
801 B
Go
Raw Normal View History

2024-10-11 11:38:08 +03:00
package main
import (
"fmt"
2024-10-11 23:57:57 +03:00
// "net/http"
2024-10-11 11:38:08 +03:00
)
func main() {
fmt.Println("Test")
2024-10-11 23:57:57 +03:00
CreateKey()
2024-10-11 11:38:08 +03:00
2024-10-11 23:57:57 +03:00
// router := http.NewServeMux()
2024-10-11 11:38:08 +03:00
2024-10-11 23:57:57 +03:00
// router.HandleFunc("POST /todos", func(w http.ResponseWriter, r *http.Request) {
// fmt.Println("create a todo")
// })
2024-10-11 11:38:08 +03:00
2024-10-11 23:57:57 +03:00
// // router.HandleFunc("GET /public-key", func(w http.ResponseWriter, r *http.Request) {
// // w.WriteHeader(http.StatusOK)
// // w.Write()
// // })
2024-10-11 11:38:08 +03:00
2024-10-11 23:57:57 +03:00
// router.HandleFunc("PATCH /todos/{id}", func(w http.ResponseWriter, r *http.Request) {
// id := r.PathValue("id")
// fmt.Println("update a todo by id", id)
// })
2024-10-11 11:38:08 +03:00
2024-10-11 23:57:57 +03:00
// router.HandleFunc("DELETE /todos/{id}", func(w http.ResponseWriter, r *http.Request) {
// id := r.PathValue("id")
// fmt.Println("delete a todo by id", id)
// })
// http.ListenAndServe(":7102", router)
2024-10-11 11:38:08 +03:00
}