Skip to content

Commit 75f35cd

Browse files
committed
Ⓜ️ feat: f2ico -> fico
1 parent 1b6847e commit 75f35cd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

assets.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"bufio"
55
"os"
66

7-
"github.com/orcastor/f2ico"
7+
"github.com/orcastor/fico"
88
)
99

1010
func main() {
11-
f, err := os.OpenFile("f2ico_demo.ico", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
11+
f, err := os.OpenFile("fico_demo.ico", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
1212
if err != nil {
1313
panic(err)
1414
}
@@ -29,10 +29,10 @@ func main() {
2929
// path := `app.icns`
3030
// path := `FileZilla.icns`
3131
// path := `F:\安装包\android-studio-ide-401-201.6858069-mac.dmg`
32-
err = f2ico.F2ICO(w, path, f2ico.Config{Index: 62})
33-
// err = f2ico.F2ICO(w, path, f2ico.Config{Format: "png"})
34-
// err = f2ico.F2ICO(w, path, f2ico.Config{Format: "png", Width: 48, Height: 48})
35-
// err = f2ico.F2ICO(w, path)
32+
err = fico.fico(w, path, fico.Config{Index: 62})
33+
// err = fico.fico(w, path, fico.Config{Format: "png"})
34+
// err = fico.fico(w, path, fico.Config{Format: "png", Width: 48, Height: 48})
35+
// err = fico.fico(w, path)
3636
if err != nil {
3737
panic(err)
3838
}

f2ico.go renamed to fico.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package f2ico
1+
package fico
22

33
import (
44
"archive/zip"

0 commit comments

Comments
 (0)