Added tags.go

This commit is contained in:
SUMUKHA-PK 2019-03-26 21:08:08 +05:30
parent 54b415d5fa
commit 1ec97e4eae
1 changed files with 12 additions and 0 deletions

12
tags.go Normal file
View File

@ -0,0 +1,12 @@
package gomatrix
// Tags is based on the Room Tagging feature as described in https://matrix.org/docs/spec/client_server/r0.2.0.html#room-tagging
// Tag contains the data for a Tag which can be referenced by the Tag name
type Tag struct {
Tags map[string]TagProperties `json:"tags"`
}
// TagProperties contains the properties of an MTag
type TagProperties struct {
Order float32 `json:"order,omitempty"` // Empty values must be neglected
}