18 lines
234 B
Go
18 lines
234 B
Go
|
package assets
|
||
|
|
||
|
import (
|
||
|
"embed"
|
||
|
"io/fs"
|
||
|
)
|
||
|
|
||
|
//go:embed *.ico
|
||
|
var icons embed.FS
|
||
|
|
||
|
func ListIcons() ([]string, error) {
|
||
|
return fs.Glob(icons, "*")
|
||
|
}
|
||
|
|
||
|
func GetIcon(filename string) ([]byte, error) {
|
||
|
return icons.ReadFile(filename)
|
||
|
}
|