@@ -39,6 +39,7 @@ var headers map[string]int = map[string]int{
39
39
}
40
40
41
41
var matchNumbers = map [string ][]string {}
42
+ var matchNumbersR = map [string ]string {} //llvm reference comment node
42
43
43
44
func populate (db * gorm.DB , allData []data.Schema , tcp [][]string , fields []string ) ([][]string , []data.Schema ) {
44
45
//reflection no tneeded
@@ -55,6 +56,7 @@ func populate(db *gorm.DB, allData []data.Schema, tcp [][]string, fields []strin
55
56
fields [j ] = v .Field (j ).Interface () //reflection my belobed
56
57
}
57
58
//opengl reference
59
+ // llvm golang sdk reference sinc ei compile to ir
58
60
//mmap syscall
59
61
vala := []string {}
60
62
//supposde to be emtpy fields to be filled populated
@@ -301,6 +303,10 @@ func main() {
301
303
teamLookup .Resize (fyne .NewSize (1200 , 600 ))
302
304
teamLookup .SetFixedSize (true )
303
305
306
+ matchLookup := apptcpjwt .NewWindow ("Match Lookup" )
307
+ matchLookup .Resize (fyne .NewSize (1200 , 600 ))
308
+ matchLookup .SetFixedSize (true )
309
+
304
310
averageTable := widget .NewTable (
305
311
func () (int , int ) {
306
312
return len (x ), len (x [0 ])
@@ -335,7 +341,9 @@ func main() {
335
341
teamLookup .Hide ()
336
342
})
337
343
inputTeam := widget .NewEntry ()
344
+ inputMatch := widget .NewEntry ()
338
345
inputTeam .SetPlaceHolder ("Team Number" )
346
+ inputMatch .SetPlaceHolder ("Match Number" )
339
347
matches := widget .NewLabel ("" )
340
348
//teamData := widget.NewTextGridFromString("LLVM REFERENCE\nJWTAUTH")
341
349
//teamDataMedians := widget.NewTextGridFromString("LLVM REFERENCE\nJWTAUTH")
@@ -355,6 +363,9 @@ func main() {
355
363
o .(* widget.Label ).SetText (currentAverages [i.Row ][i.Col ])
356
364
})
357
365
teamButton := widget .NewButton ("LOOKUP" , func () {
366
+ if inputTeam .Text == "" {
367
+ return
368
+ }
358
369
avg := []string {"Averages: " }
359
370
for _ , v := range x {
360
371
if v [1 ] == inputTeam .Text {
@@ -373,6 +384,9 @@ func main() {
373
384
}
374
385
matches .SetText ("Matches: " + strings .Join (matchNumbers [inputTeam .Text ], "," ) + " (" + fmt .Sprintf ("%v" , len (matchNumbers [inputTeam .Text ])) + ")" )
375
386
importantGeneralData .Refresh ()
387
+ })
388
+ matchButton := widget .NewButton ("LOOKUP" , func () {
389
+
376
390
})
377
391
vsplit := container .NewVSplit (container .NewVBox (inputTeam , teamButton , matches ), importantGeneralData )
378
392
vsplit .SetOffset (0 )
@@ -388,7 +402,7 @@ func main() {
388
402
if len (tcp ) == 0 {
389
403
return 0 , 0
390
404
}
391
- return len (tcp ), len (tcp [0 ])
405
+ return len (tcp ), len (tcp [0 ]) //llvm
392
406
},
393
407
func () fyne.CanvasObject {
394
408
return widget .NewLabel ("placeholder" )
0 commit comments