Skip to content

Commit

Permalink
Masking more
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosuzart committed Feb 25, 2024
1 parent b1c38e5 commit ddbf7e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/gdamore/tcell/v2"
masker "github.com/ggwhite/go-masker"
"github.com/ggwhite/go-masker"
"github.com/paulosuzart/fgamanager/db"
"github.com/rivo/tview"
"log"
Expand Down Expand Up @@ -141,13 +141,13 @@ func (t *TupleView) GetCell(row, column int) *tview.TableCell {
case 0:
return tview.NewTableCell(tuple.UserType).SetTextColor(tcell.ColorLightCyan)
case 1:
return tview.NewTableCell(tuple.UserId).SetTextColor(tcell.ColorLightCyan)
return tview.NewTableCell(masker.ID(tuple.UserId)).SetTextColor(tcell.ColorLightCyan)
case 2:
return tview.NewTableCell(tuple.Relation).SetTextColor(tcell.ColorLightCyan)
case 3:
return tview.NewTableCell(tuple.ObjectType).SetTextColor(tcell.ColorLightCyan)
case 4:
return tview.NewTableCell(tuple.ObjectId).SetTextColor(tcell.ColorLightCyan)
return tview.NewTableCell(masker.ID(tuple.ObjectId)).SetTextColor(tcell.ColorLightCyan)
case 5:
return tview.NewTableCell(tuple.Timestamp.String()).SetTextColor(tcell.ColorLightCyan)
case 6:
Expand Down

0 comments on commit ddbf7e3

Please sign in to comment.