From 2b3e477465d328da8e112065b02c8436428968f8 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 26 Sep 2023 18:57:38 +0900 Subject: [PATCH] initial commits --- ent/tag.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ent/tag.go diff --git a/ent/tag.go b/ent/tag.go new file mode 100644 index 0000000..c023fed --- /dev/null +++ b/ent/tag.go @@ -0,0 +1,12 @@ +package ent + +import ( + "sourcecode.social/reiver/go-opt" +) + +// See: +// https://docs.joinmastodon.org/entities/Status/#Tag +type Tag struct { + Name opt.Optional[string] `json:"name"` + URL opt.Optional[string] `json:"url"` +}