From 1ec97e4eaec732530a4ec47a6b468e1aa38ce2ad Mon Sep 17 00:00:00 2001 From: SUMUKHA-PK Date: Tue, 26 Mar 2019 21:08:08 +0530 Subject: [PATCH] Added tags.go --- tags.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tags.go diff --git a/tags.go b/tags.go new file mode 100644 index 0000000..54af4ef --- /dev/null +++ b/tags.go @@ -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 +}