diff options
author | Dmitri Nikulin <dnikulin@gmail.com> | 2020-04-23 12:43:43 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2020-06-24 07:32:52 +0900 |
commit | 8cadc751ca6cccbf2b8edbab6b11c01b347418eb (patch) | |
tree | 17e9db74239c0600ba717f3670e61b2399b1328c /pkg/packet/bgp/constant.go | |
parent | 210696d6ff912ef8aa7fe0553b5b8ecfbc4bc7b1 (diff) |
Add //go:generate stringer directives for public enum types.
All such directives can be invoked by running
$ go generate
Stringer itself can be obtained by running
$ go get golang.org/x/tools/cmd/stringer
See https://github.com/osrg/gobgp/issues/2265
Diffstat (limited to 'pkg/packet/bgp/constant.go')
-rw-r--r-- | pkg/packet/bgp/constant.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/packet/bgp/constant.go b/pkg/packet/bgp/constant.go index 6f87efdd..3274afbd 100644 --- a/pkg/packet/bgp/constant.go +++ b/pkg/packet/bgp/constant.go @@ -24,6 +24,7 @@ const AS_TRANS = 23456 const BGP_PORT = 179 +//go:generate stringer -type=FSMState type FSMState int const ( |