From c4775c42510d1f1ddd55036dc19e982712fa6a0b Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 7 Jul 2018 13:48:38 +0900 Subject: follow Standard Go Project Layout https://github.com/golang-standards/project-layout Now you can see clearly what are private and public library code. Signed-off-by: FUJITA Tomonori --- internal/pkg/zebra/ptm_status_string.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/pkg/zebra/ptm_status_string.go (limited to 'internal/pkg/zebra/ptm_status_string.go') diff --git a/internal/pkg/zebra/ptm_status_string.go b/internal/pkg/zebra/ptm_status_string.go new file mode 100644 index 00000000..464233b7 --- /dev/null +++ b/internal/pkg/zebra/ptm_status_string.go @@ -0,0 +1,16 @@ +// Code generated by "stringer -type=PTM_STATUS"; DO NOT EDIT. + +package zebra + +import "fmt" + +const _PTM_STATUS_name = "PTM_STATUS_DOWNPTM_STATUS_UPPTM_STATUS_UNKNOWN" + +var _PTM_STATUS_index = [...]uint8{0, 15, 28, 46} + +func (i PTM_STATUS) String() string { + if i >= PTM_STATUS(len(_PTM_STATUS_index)-1) { + return fmt.Sprintf("PTM_STATUS(%d)", i) + } + return _PTM_STATUS_name[_PTM_STATUS_index[i]:_PTM_STATUS_index[i+1]] +} -- cgit v1.2.3