Skip to content

Commit 14f78b4

Browse files
author
Sean Treadway
authored
Merge pull request #394 from kpurdon/go-modules-init
Go Modules
2 parents 61ee40d + 8481edb commit 14f78b4

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ language: go
33
go:
44
- 1.10.x
55
- 1.11.x
6+
- 1.12.x
67

78
services:
89
- rabbitmq
910

1011
env:
11-
- AMQP_URL=amqp://guest:[email protected]:5672/
12+
- GO111MODULE=on AMQP_URL=amqp://guest:[email protected]:5672/
1213

1314
before_install:
1415
- go get -v golang.org/x/lint/golint

auth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ func (auth *PlainAuth) Response() string {
3232
return fmt.Sprintf("\000%s\000%s", auth.Username, auth.Password)
3333
}
3434

35-
// AMQPLAINAuth is similar to PlainAuth
35+
// AMQPlainAuth is similar to PlainAuth
3636
type AMQPlainAuth struct {
3737
Username string
3838
Password string
3939
}
4040

41+
// Mechanism returns "AMQPLAIN"
4142
func (auth *AMQPlainAuth) Mechanism() string {
4243
return "AMQPLAIN"
4344
}

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/streadway/amqp
2+
3+
go 1.10

uri.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (uri URI) PlainAuth() *PlainAuth {
125125
}
126126
}
127127

128-
// PlainAuth returns a PlainAuth structure based on the parsed URI's
128+
// AMQPlainAuth returns a PlainAuth structure based on the parsed URI's
129129
// Username and Password fields.
130130
func (uri URI) AMQPlainAuth() *AMQPlainAuth {
131131
return &AMQPlainAuth{

0 commit comments

Comments
 (0)