Merge "More "go vet" fixes."
diff --git a/cmd/principal/main.go b/cmd/principal/main.go
index dc95990..834a0ed 100644
--- a/cmd/principal/main.go
+++ b/cmd/principal/main.go
@@ -859,9 +859,9 @@
}
type recvBlessingsInfo struct {
- RemoteKey string `json:remote_key`
- RemoteToken string `json:remote_token`
- Name string `json:name`
+ RemoteKey string `json:"remote_key"`
+ RemoteToken string `json:"remote_token"`
+ Name string `json:"name"`
}
func writeRecvBlessingsInfo(fname string, remoteKey, remoteToken, name string) error {
diff --git a/services/identity/identityd/sql.go b/services/identity/identityd/sql.go
index b01e47a..fc5c127 100644
--- a/services/identity/identityd/sql.go
+++ b/services/identity/identityd/sql.go
@@ -33,15 +33,15 @@
// needed to encrypt the information sent over the wire.
type sqlConfig struct {
// DataSourceName is the connection string required by go-sql-driver: "[username[:password]@][protocol[(address)]]/dbname".
- DataSourceName string `json:dataSourceName`
+ DataSourceName string
// RootCertPath is the root certificate of the sql server for ssl.
- RootCertPath string `json:rootCertPath`
+ RootCertPath string
// TLSServerName is the domain name of the sql server for ssl.
- TLSServerName string `json:tlsServerName`
+ TLSServerName string
// ClientCertPath is the client certificate for ssl.
- ClientCertPath string `json:clientCertPath`
+ ClientCertPath string
// ClientKeyPath is the client private key for ssl.
- ClientKeyPath string `json:clientKeyPath`
+ ClientKeyPath string
}
func dbFromConfigFile(file string) (*sql.DB, error) {