refactor, go work

This commit is contained in:
ctengiz
2024-03-25 11:30:06 +03:00
parent e78ff14861
commit 1f62906e95
47 changed files with 40 additions and 241 deletions

19
app/BotService.go Normal file
View File

@@ -0,0 +1,19 @@
package app
import "github.com/wailsapp/wails/v3/pkg/application"
type BotService struct{}
var excelFilePath string
func (g *BotService) ClaimFile() string {
dialog := application.OpenFileDialog()
dialog.SetTitle("Lütfen yüklenecek Excel dosyanızı seçiniz")
file, err := dialog.PromptForSingleSelection()
if err != nil {
return ""
}
excelFilePath = file
return file
}