Generation

generate functionFri, 12 May 2023

duplica de la pagina de netflix en html

package main import ( "net/http" "io" "log" "time" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "<html><body>Netflix Clone</body></html>") }) http.HandleFunc("/time", func(w http.ResponseWriter, r *http.Request) { tm := time.Now().Format(time.RFC1123) io.WriteString(w, tm) }) log.Fatal(http.ListenAndServe(":3000", nil)) }

Want to kickstart your project?Use the new AI Studio to create your code