From 91e8537e9e4e862b978fef5778b23bb0511a7408 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 14 Nov 2017 13:53:40 +0100 Subject: [PATCH] Started working on character patch --- patches/character-patch/character-patch.go | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/character-patch/character-patch.go diff --git a/patches/character-patch/character-patch.go b/patches/character-patch/character-patch.go new file mode 100644 index 00000000..7002f3fe --- /dev/null +++ b/patches/character-patch/character-patch.go @@ -0,0 +1,23 @@ +package main + +import ( + "github.com/animenotifier/arn" +) + +// Character ... +type Character struct { + ID string `json:"id"` + Name string `json:"name"` + Image string `json:"image"` + Description string `json:"description"` + Attributes []*arn.CharacterAttribute `json:"attributes"` +} + +func main() { + defer arn.Node.Close() + + // Overwrite existing type + arn.DB.RegisterTypes((*Character)(nil)) + + // characters := arn.AllCharacters() +}