Skip to content

Commit

Permalink
Added Wire.String().
Browse files Browse the repository at this point in the history
  • Loading branch information
markkurossi committed Oct 23, 2024
1 parent 8c139dc commit d9e4d2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ot/label.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// label.go
//
// Copyright (c) 2019-2023 Markku Rossi
// Copyright (c) 2019-2024 Markku Rossi
//
// All rights reserved.
//
Expand All @@ -20,6 +20,10 @@ type Wire struct {
L1 Label
}

func (w Wire) String() string {
return fmt.Sprintf("%s/%s", w.L0, w.L1)
}

// Label implements a 128 bit wire label.
type Label struct {
D0 uint64
Expand Down

0 comments on commit d9e4d2f

Please sign in to comment.