Skip to content
Browse files

Internalize the parseResponse function.

  • Loading branch information...
1 parent e6240a9 commit df47121ba97c43c97827522eb9bd05714deaf927 @jlouis committed
Showing with 3 additions and 3 deletions.
  1. +2 −2 ident.go
  2. +1 −1 ident_test.go
View
4 ident.go
@@ -254,7 +254,7 @@ func parseType(l []byte, addInfo []byte) (*IdentResponse, os.Error) {
return r, nil
}
-func ParseResponse(l []byte) (*IdentResponse, os.Error) {
+func parseResponse(l []byte) (*IdentResponse, os.Error) {
bs := bytes.SplitAfter(l, colon, 3)
if len(bs) < 3 {
goto Malformed
@@ -300,7 +300,7 @@ func Identify(hostname string, sPort int, cPort int) (*IdentResponse, os.Error)
return nil, err2
}
- return ParseResponse(response)
+ return parseResponse(response)
}
// vim: set ft=go noexpandtab sw=8 sts=8
View
2 ident_test.go
@@ -19,7 +19,7 @@ var parseResponseTests = []parseResponseTest{
func TestParseResponse(t *testing.T) {
for i, test := range parseResponseTests {
- q, err := ParseResponse([]byte(test.query))
+ q, err := parseResponse([]byte(test.query))
if !test.error && err != nil {
t.Errorf("test %d: Unexpected error: %v", i, err)
}

0 comments on commit df47121

Please sign in to comment.
Something went wrong with that request. Please try again.