feat!: complete rearrangement for multi-module platform-specific modules

This commit is contained in:
2024-10-27 16:50:15 -05:00
parent 75892037b8
commit 1444d3fc2b
21 changed files with 546 additions and 157 deletions

16
internal/config.go Normal file
View File

@@ -0,0 +1,16 @@
package internal
import (
"fmt"
"log/slog"
"os"
)
func getIcon(icon string) []byte {
iconBytes, err := icons.ReadFile(fmt.Sprintf("resources/%s.ico", icon))
if err != nil {
slog.Error("Unable to load icon", "error", err)
os.Exit(1)
}
return iconBytes
}