You're right! They're awful. Here are the files I sent -- this time in black-and-white, fixed width
.../learn/main.go ============ // main.go package main import ( "fmt" "net/http" ) func handleRoot(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "webpages/main.html") } func main() { http.HandleFunc("/", handleRoot) http.Handle("/css/", http.FileServer(http.Dir("webpages/css"))) http.Handle("/js/", http.FileServer(http.Dir("webpages/js"))) fmt.Println("listening on port 8877") http.ListenAndServe(":8877", nil) } .../learn/webpages/main.html ====================== <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/main.css"> <script type="text/javascript" src="js/file.js" ></script> </head> <body> <div> <h2> file location exercise </h2> <input type="button" onclick="f1()" value="Find File" /> </div> </body> </html> .../learn/webpages/css/main.css ========================= body { background-color: Azure; color: blue } .../learn/webpages/js/file.js ==================== function f1() { alert("Hello from .../learn/webpages/js/file.js") } On Mon, May 6, 2019 at 12:16 PM Jan Mercl <0xj...@gmail.com> wrote: > On Mon, May 6, 2019 at 6:11 PM ThisEndUp <rlten...@gmail.com> wrote: > > That listing is terrible. Colors aside, some parts of text has > contrast like 10%. Please post source code/snippets at play.golang.org > or include in in the email as plain text only, i.e.black on white. > It's the most readable option. Thanks. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.