Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Feb 16, 2024
1 parent 8f63ad5 commit 6d86698
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions go/streamlog/bind_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,16 @@ func (bv *BindVariable) UnmarshalJSON(b []byte) error {
//
// This allows a *querypb.BindVariable that would have marshaled
// to this:
// {"Type":10262,"Value":"FmtAtEq6S9Y="}
//
// {"Type":10262,"Value":"FmtAtEq6S9Y="}
//
// to marshal to this:
// {"Type":"VARBINARY","Value":"FmtAtEq6S9Y="}
//
// {"Type":"VARBINARY","Value":"FmtAtEq6S9Y="}
//
// or if query redaction is enabled, like this:
//
// {"Type":"VARBINARY","Value":null}
func (bv BindVariable) MarshalJSON() ([]byte, error) {
// convert querypb.Type integer to string and pass along Value.
out := map[string]interface{}{
Expand Down

0 comments on commit 6d86698

Please sign in to comment.