my/go/l16.go

31 lines
645 B
Go
Raw Normal View History

package main
import (
"fmt"
"os"
"net/http"
"log"
"github.com/joho/godotenv"
)
func handler(w http.ResponseWriter, r *http.Request) {
err := godotenv.Load()
if err != nil {
log.Fatalf("%v\n", err)
}
PathFile := os.Getenv("html_file_for_l16.go") // Enter the file path for the html_file_for_l16.go variable into the env file
html, err := os.ReadFile(PathFile)
if err != nil {
log.Fatalf("%v\n", err)
}
2026-06-16 02:45:15 +03:00
fmt.Fprint(w, string(html))
}
func main() {
2026-06-16 03:08:48 +03:00
http.HandleFunc("/VSZw5p9vwaCxQgU/efNCQ3Vz3L2P8ZGv3VWp/ybZAUeqSMbPpcDsc7G6e/", handler)
2026-06-16 02:38:13 +03:00
err := http.ListenAndServe(":23455", nil)
if err != nil {
log.Fatalf("%v\n", err)
}
2026-06-16 02:38:13 +03:00
}