Commit Diff


commit - 7efdecef7fecf38257ca5f9d8eae435b16e37e24
commit + 2243a1ae65fdace004d2e95cf1e87711a13347be
blob - 4e046afa5926a6d65019874e82b357817e575f3d
blob + d6a73244b2364976cbef16028536aa644d35fb67
--- mcall.go
+++ mcall.go
@@ -28,11 +28,11 @@ const (
 // This design is loosely based on the Plan 9 network file protocol 9P.
 type Mcall struct {
 	Type     uint
-	Username string          // Tregister, Rregister
-	Password string          // Tregister
-	Error    string          // Rerror
-	Aliases  aliases.Aliases // Rnew, Rlist, Tremove
-	Expiry   time.Time       // Tnew, Rnew
+	Username string          `json:",omitempty"` // Tregister, Rregister
+	Password string          `json:",omitempty"` // Tregister
+	Error    string          `json:",omitempty"` // Rerror
+	Aliases  aliases.Aliases `json:",omitempty"` // Rnew, Rlist, Tremove
+	Expiry   time.Time       `json:",omitempty"` // Tnew, Rnew
 }
 
 // ParseMcall parses and validates a JSON-encoded Mcall from r.