tInitialize whole player struct on start - scoreboard - Interactive scoreboard for CTF-like games
 (HTM) git clone git://git.z3bra.org/scoreboard.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 3733b227f90b501b4f2817d9d0d4de8402fcf446
 (DIR) parent 55681064d723f99c219f287a6c65cf977338e616
 (HTM) Author: Willy Goiffon <contact@z3bra.org>
       Date:   Wed,  2 Oct 2024 23:21:16 +0200
       
       Initialize whole player struct on start
       
       Diffstat:
         M main.go                             |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/main.go b/main.go
       t@@ -127,10 +127,12 @@ func main() {
                scoreboard.board = tview.NewFlex()
                scoreboard.player = &Player{
                        db: scoreboard.db,
       +                id: -1,
       +                token: "",
       +                name: "",
                        flags: make([]Flag,0),
                        score: 0,
                        ts: time.Now().Unix(),
       -                token: "",
                }
        
                scoreboard.pages.SetBackgroundColor(tcell.ColorDefault)