/
b0xfile__img_favicon.ico.go
35 lines (31 loc) · 4.16 KB
/
b0xfile__img_favicon.ico.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2018-2020 Double All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package template
import (
"log"
"os"
"path"
)
var favicon_ico = []byte("\x00\x00\x01\x00\x01\x00\x10\x10\x00\x00\x01\x00\x18\x00\x68\x03\x00\x00\x16\x00\x00\x00\x28\x00\x00\x00\x10\x00\x00\x00\x20\x00\x00\x00\x01\x00\x18\x00\x00\x00\x00\x00\x40\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\x46\x2e\x00\x9f\x6a\x00\xcc\x88\x00\xcc\x88\x00\x96\x64\x00\x46\x2e\x00\xa8\x70\x00\x3d\x29\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\x60\x40\x00\xa8\x70\x00\xcc\x88\x00\xf7\xf4\xf0\x9e\x84\x50\xcc\x88\x00\xcc\x88\x00\xa7\x8f\x60\xf7\xf4\xf0\xbe\x94\x40\xff\xff\xff\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xdb\xc7\xa0\xb7\xaf\xa0\x3d\x29\x00\x3d\x29\x00\xb7\xaf\xa0\xdb\xc7\xa0\xbe\x94\x40\xff\xff\xff\xa8\x70\x00\xa8\x70\x00\xba\x7c\x00\xcc\x88\x00\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xdc\xad\x50\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xdc\xad\x50\xbe\x94\x40\xff\xff\xff\x88\x70\x40\x7a\x67\x40\x55\x44\x20\x96\x64\x00\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xcc\x88\x00\xf7\xf4\xf0\x94\x73\x30\x9e\x84\x50\xf7\xf4\xf0\xcc\x88\x00\xbe\x94\x40\xff\xff\xff\xf2\xe2\xc0\xf9\xf1\xe0\xff\xff\xff\x91\x80\x60\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xcc\x88\x00\xdb\xc7\xa0\xb6\xa9\x90\xbd\xb3\xa0\xdb\xc7\xa0\xcc\x88\x00\xbe\x94\x40\xff\xff\xff\xcc\x88\x00\xcc\x88\x00\xcb\xb2\x80\xe9\xe6\xe0\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xcc\x88\x00\xdc\xad\x50\xdd\xd8\xd0\xe9\xe6\xe0\xdc\xad\x50\xcc\x88\x00\xbe\x94\x40\xff\xff\xff\x60\x40\x00\x60\x40\x00\x86\x7a\x60\xf7\xf5\xf0\xcc\x88\x00\xd8\xd0\xc0\xbe\x94\x40\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xfa\xf7\xf0\xfa\xf7\xf0\xcc\x88\x00\xcc\x88\x00\xd2\xa1\x40\xff\xff\xff\xea\xdc\xc0\xea\xdc\xc0\xff\xff\xff\xe9\xcb\x90\xcc\x88\x00\xec\xdd\xc0\xd2\xa1\x40\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xd6\x9e\x30\xd6\x9e\x30\xcc\x88\x00\xcc\x88\x00\xcf\x8f\x10\xd9\xa6\x40\xd9\xa6\x40\xd9\xa6\x40\xd6\x9e\x30\xcc\x88\x00\xcc\x88\x00\xd6\x9e\x30\xcf\x8f\x10\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\xcc\x88\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x3c\x80\x00\x00\x00\x90\x00\x00\x00\x80\x00\x00\x00\x80\x00\x00\x00\x90\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")
func init() {
filepath := "/img/favicon.ico"
if _, err := FS.Stat(CTX, path.Dir(filepath)); os.IsNotExist(err) {
err = FS.Mkdir(CTX, path.Dir(filepath), 0777)
if err != nil {
log.Fatal(err)
}
}
f, err := FS.OpenFile(CTX, filepath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0777)
if err != nil {
log.Fatal(err)
}
_, err = f.Write(favicon_ico)
if err != nil {
log.Fatal(err)
}
err = f.Close()
if err != nil {
log.Fatal(err)
}
}