Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added String() Methods to Assist with Debugging #132

Merged
merged 2 commits into from
Apr 16, 2018

Conversation

kent-h
Copy link
Contributor

@kent-h kent-h commented Apr 13, 2018

Types affected:

  • Type
  • ConnState
  • ErrType
  • Error (Special case: ErrCode depends on ErrType)
  • InstructionType
  • XMType
  • MultipartType
  • PacketInReason
  • TablePropType

header.go Outdated
@@ -3,7 +3,7 @@ package openflow
import (
"io"
"math/rand"

"fmt"
Copy link
Member

@ybubnov ybubnov Apr 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to keep the imports grouped by type: https://github.com/golang/go/wiki/CodeReviewComments#imports. Please, use goimports to make it automatically.

ofp/error.go Outdated
return e.String()
}

func (t Error) String() string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: (t Error) to (e Error).

@ybubnov
Copy link
Member

ybubnov commented Apr 14, 2018

Love this PR 👍

@ybubnov ybubnov merged commit 0e7fdaf into netrack:master Apr 16, 2018
@kent-h kent-h deleted the feature/printable-constants branch April 17, 2018 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants