Simple favicon generator implemented in Go.
go install github.com/shinshin86/gosfg@latest
gosfg -i logo.png -n "Your site name"
You can check the detailed options with the help command.
Usage of gosfg:
-d string
Specify output directory. If the directory does not exist, create it. (default "public")
-displayMode string
Specify display mode. (default "standalone")
-i string
[Required] Specify target image.
-n string
Specify your site name.
-themeColor string
Specify theme color. (default "#ffffff")
-tileColor string
Specify tile color. (default "#da532c")
Go does not seem to natively support the ico format in stdlib at this time.
https://pkg.go.dev/image#section-directories