]> Sergey Matveev's repositories - btrtrc.git/blobdiff - peer_protocol/msg.go
Add comments
[btrtrc.git] / peer_protocol / msg.go
index d7e5f5a77482a7dffab3996da84ca7077f33f717..c0d94e3727bb7f1f6b1739d5f634b760f3a31505 100644 (file)
@@ -6,6 +6,8 @@ import (
        "fmt"
 )
 
+// This is a lazy union representing all the possible fields for messages. Go doesn't have ADTs, and
+// I didn't choose to use type-assertions.
 type Message struct {
        Keepalive            bool
        Type                 MessageType