Skip to content

Commit

Permalink
ndt7.go: don't export more than needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jul 6, 2019
1 parent 793a699 commit 07c337c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ndt7.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (
)

const (
// ClientLibraryName is the name of this library
ClientLibraryName = "ndt7-client-go"
// libraryName is the name of this library
libraryName = "ndt7-client-go"

// ClientLibraryVersion is the version of this library
ClientLibraryVersion = "0.1.0"
// libraryVersion is the version of this library
libraryVersion = "0.1.0"
)

// locateFn is the type of function used to locate a server.
Expand Down Expand Up @@ -95,7 +95,7 @@ type Client struct {

// makeUserAgent creates the user agent string
func makeUserAgent(clientName, clientVersion string) string {
return clientName + "/" + clientVersion + " " + ClientLibraryName + "/" + ClientLibraryVersion
return clientName + "/" + clientVersion + " " + libraryName + "/" + libraryVersion
}

// NewClient creates a new client instance identified by the specified
Expand Down Expand Up @@ -140,8 +140,8 @@ func (c *Client) doConnect(
URL.Path = URLPath
q := URL.Query()
q.Set("client_arch", runtime.GOARCH)
q.Set("client_library_name", ClientLibraryName)
q.Set("client_library_version", ClientLibraryVersion)
q.Set("client_library_name", libraryName)
q.Set("client_library_version", libraryVersion)
q.Set("client_name", c.ClientName)
q.Set("client_os", runtime.GOOS)
q.Set("client_version", c.ClientVersion)
Expand Down

0 comments on commit 07c337c

Please sign in to comment.