From 55b164b4390c076b2a95ef3be267a4e79969bdd6 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 12 Apr 2018 18:14:48 +0200 Subject: [PATCH] Do missed gofmt --- events.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/events.go b/events.go index 13ba3f7..dbf8732 100644 --- a/events.go +++ b/events.go @@ -7,13 +7,13 @@ import ( // Event represents a single Matrix event. type Event struct { - StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. - Sender string `json:"sender,omitempty"` // The user ID of the sender of the event - Type string `json:"type"` // The event type - Timestamp int64 `json:"origin_server_ts,omitempty"` // The unix timestamp when this message was sent by the origin server - ID string `json:"event_id,omitempty"` // The unique ID of this event - RoomID string `json:"room_id,omitempty"` // The room the event was sent to. May be nil (e.g. for presence) - Content map[string]interface{} `json:"content"` // The JSON content of the event. + StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. + Sender string `json:"sender,omitempty"` // The user ID of the sender of the event + Type string `json:"type"` // The event type + Timestamp int64 `json:"origin_server_ts,omitempty"` // The unix timestamp when this message was sent by the origin server + ID string `json:"event_id,omitempty"` // The unique ID of this event + RoomID string `json:"room_id,omitempty"` // The room the event was sent to. May be nil (e.g. for presence) + Content map[string]interface{} `json:"content"` // The JSON content of the event. } // Body returns the value of the "body" key in the event content if it is