mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-03 22:08:04 +00:00 
			
		
		
		
	Do missed gofmt
This commit is contained in:
		
							parent
							
								
									2e5978278e
								
							
						
					
					
						commit
						55b164b439
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		
							
								
								
									
										14
									
								
								events.go
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								events.go
									
										
									
									
									
								
							| 
						 | 
					@ -7,13 +7,13 @@ import (
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Event represents a single Matrix event.
 | 
					// Event represents a single Matrix event.
 | 
				
			||||||
type Event struct {
 | 
					type Event struct {
 | 
				
			||||||
	StateKey  *string                `json:"state_key,omitempty"`           // The state key for the event. Only present on State Events.
 | 
						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
 | 
						Sender    string                 `json:"sender,omitempty"`           // The user ID of the sender of the event
 | 
				
			||||||
	Type      string                 `json:"type"`                          // The event type
 | 
						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
 | 
						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
 | 
						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)
 | 
						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.
 | 
						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
 | 
					// Body returns the value of the "body" key in the event content if it is
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue