From aec4f7d20d4319da7315774b76faf46c4669b796 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Fri, 26 May 2017 18:53:04 +0200 Subject: [PATCH] Favicon serve statici --- html.go | 2 ++ static/favicon.ico | Bin 0 -> 1150 bytes hackathon.png => static/hackathon.png | Bin template/Interfaccia.html | 6 +++--- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 static/favicon.ico rename hackathon.png => static/hackathon.png (100%) diff --git a/html.go b/html.go index 6246df6..1798c6e 100644 --- a/html.go +++ b/html.go @@ -17,6 +17,8 @@ func ServiHTML() { } http.HandleFunc("/tabella", handlerRoot("template/tabella.html")) http.HandleFunc("/", handlerRoot("template/Interfaccia.html")) + fs := http.FileServer(http.Dir("static")) + http.Handle("/static/", http.StripPrefix("/static/", fs)) http.ListenAndServe(":3000", nil) } diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..85c23e928841ee80906ccce51d6fd48940d137c7 GIT binary patch literal 1150 zcmbtTOKTHR6u$FFX3~x{8cmb5G;NYTOhRoUD56H9k`AYF8! zQi38XD2RxPh+->rBZ44;P{dy#xTp&^x)IzIKJRza#8Co@y~CM%=bZ05_q;|3O+J3V zkndJ;%oHLhgy@nYRZ>&d%S{Mr3)GiIeY;*?9;^{RrgGLyDbsuZbl2lzfAsTEU(+0g zXX+-I5j!7{18hHxih6~@4x^huJkW1rg5{-4xgo0eb`J zvF|1_7(djCONZMqc_D>~ff%NXX$)=&BfP|`e6W@$Wp61wGuBMZ!S>Ywb??!wVRSV4 zaC@i&cTaWV)p$3apHCsxQuiC5F)$Y9RA(6~hbJRR$eCe{@#b<5ZWI#gEPIdme61?+ zyX)uJ2KMHH*ta2wjO_F9j%Jn1z2Q!5T;a#AwM$jq-1Ymjf9`%Wr%~C9!nO!>nPbJ~ u?%&_$$75>XOjNks-Se~1`CaJ$BjZu)fB)Z4mJqKEA&Rmn|GJ1Jhuoj4mVGGz literal 0 HcmV?d00001 diff --git a/hackathon.png b/static/hackathon.png similarity index 100% rename from hackathon.png rename to static/hackathon.png diff --git a/template/Interfaccia.html b/template/Interfaccia.html index 1819401..5868289 100644 --- a/template/Interfaccia.html +++ b/template/Interfaccia.html @@ -1,7 +1,9 @@ - GoBug + Go Bug + +