Skip to content

Commit

Permalink
Add import comments to grpc packages.
Browse files Browse the repository at this point in the history
This enforces that these packages are used with these import paths.
See http://golang.org/cmd/go/#hdr-Import_path_checking for documentation.
  • Loading branch information
dsymonds committed Feb 9, 2015
1 parent e161b9c commit 3981839
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion codes/codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

// Package codes defines the canonical error codes used by gRPC. It is
// consistent across various languages.
package codes
package codes // import "google.golang.org/grpc/codes"

// A Code is an unsigned 32-bit error code as defined in the gRPC spec.
type Code uint32
Expand Down
2 changes: 1 addition & 1 deletion credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/

// Package credentials implements various credentials supported by gRPC library.
package credentials
package credentials // import "google.golang.org/grpc/credentials"

import (
"crypto/tls"
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Package grpc implements an RPC system called gRPC.
See https://github.com/grpc/grpc for more information about gRPC.
*/
package grpc
package grpc // import "google.golang.org/grpc"
2 changes: 1 addition & 1 deletion metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/

// Package metadata define the structure of the metadata supported by gRPC library.
package metadata
package metadata // import "google.golang.org/grpc/metadata"

import (
"encoding/base64"
Expand Down
4 changes: 2 additions & 2 deletions transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
Package transport defines and implements message oriented communication channel
to complete various transactions (e.g., an RPC).
*/
package transport
package transport // import "google.golang.org/grpc/transport"

import (
"bytes"
Expand All @@ -44,10 +44,10 @@ import (
"net"
"sync"

"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
"golang.org/x/net/context"
)

// recvMsg represents the received msg from the transport. All transport
Expand Down

0 comments on commit 3981839

Please sign in to comment.