func mainWindow_OnDropFiles(arg *gform.EventArg) { if e, ok := arg.Data().(*gform.DropFilesEventData); ok { println("File Count:", len(e.Files)) println("Pos", e.X, e.Y) for _, f := range e.Files { println(f) } } }