Add support for getting binary icon and name from exe on Windows
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
//go:build !linux
|
||||
//go:build !linux && !windows
|
||||
|
||||
package icons
|
||||
|
||||
import "context"
|
||||
|
||||
// FindIcon returns nil, nil for unsupported platforms.
|
||||
func FindIcon(ctx context.Context, binName string, homeDir string) (*Icon, error) {
|
||||
return nil, nil
|
||||
// GetIconAndName returns zero values for unsupported platforms.
|
||||
func GetIconAndName(ctx context.Context, binPath string, homeDir string) (icon *Icon, name string, err error) {
|
||||
return nil, "", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user