diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-08-28 14:41:25 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-09-06 08:14:14 +0900 |
commit | d643cea85f034eeac22f857bd7bce5a82fe05d9d (patch) | |
tree | 894b00b38695da8f89db8d026205da9e037519d4 /zebra/zapi.go | |
parent | 2c6bca5485ea3e7a35d13b2f3202b07a089fb9ab (diff) |
zebra/zapi: Regenerate stringer
This patch re-generates String() functions with "go generate" command.
e.g.) go generate ./zebra
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/zapi.go')
-rw-r--r-- | zebra/zapi.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go index fb5450b7..590bce4c 100644 --- a/zebra/zapi.go +++ b/zebra/zapi.go @@ -40,6 +40,8 @@ const ( INTERFACE_LINKDETECTION INTERFACE_STATUS = 0x04 ) +// Interface Link Layer Types. +//go:generate stringer -type=LINK_TYPE type LINK_TYPE uint32 const ( @@ -121,6 +123,7 @@ func (t INTERFACE_STATUS) String() string { } // Subsequent Address Family Identifier. +//go:generate stringer -type=SAFI type SAFI uint8 const ( @@ -133,6 +136,7 @@ const ( ) // API Types. +//go:generate stringer -type=API_TYPE type API_TYPE uint16 const ( @@ -170,6 +174,7 @@ const ( ) // Route Types. +//go:generate stringer -type=ROUTE_TYPE type ROUTE_TYPE uint8 const ( @@ -294,6 +299,7 @@ func (t FLAG) String() string { } // Nexthop Flags. +//go:generate stringer -type=NEXTHOP_FLAG type NEXTHOP_FLAG uint8 const ( |