/favicon and /favicon/ is not the same!

2018. szeptember 27., csütörtök 20:18:43 UTC+2 időpontban Grey White a 
következőt írta:
>
> Good day guys,
> I need help with attaching favicon.ico to my site
> that is my folder structure.
> i really can't tel what am doing wrong
>
> [image: Capture.PNG]
> func main() {
>    http.HandleFunc("/favicon", faviconHandler)
>    log.Fatal(http.ListenAndServe(":8080", nil))
> }
>
> func faviconHandler(w http.ResponseWriter, r *http.Request) {
>     http.ServeFile(w, r, "/crm-app/favicon.ico")
> }
>
> my links in index.html
> <link rel="apple-touch-icon" sizes="180x180" href="
> /favicon/apple-touch-icon.png">
>    <link rel="icon" type="image/png" sizes="32x32" href="
> /favicon/favicon-32x32.png">
>    <link rel="icon" type="image/png" sizes="16x16" href="
> /favicon/favicon-16x16.png">
>    <link rel="manifest" href="/favicon/site.webmanifest">
>    <link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="
> #5bbad5">
>    <link rel="shortcut icon" href="/favicon/favicon.ico">
>    <meta name="msapplication-TileColor" content="#ffffff">
>    <meta name="msapplication-config" content="/favicon/browserconfig.xml">
>    <meta name="theme-color" content="#ffffff">
>
>
>

-- 
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.

Reply via email to