diff --git a/ot/label.go b/ot/label.go index 554d7970..d9b636e1 100644 --- a/ot/label.go +++ b/ot/label.go @@ -1,7 +1,7 @@ // // label.go // -// Copyright (c) 2019-2023 Markku Rossi +// Copyright (c) 2019-2024 Markku Rossi // // All rights reserved. // @@ -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