From c5ed0be5f23ea318befb0fb9370e219889d22ec5 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 31 Aug 2024 21:11:27 +0200 Subject: [PATCH] better naming for VariantType struct --- util/types.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/types.go b/util/types.go index fe3ce61..87195c5 100644 --- a/util/types.go +++ b/util/types.go @@ -7,17 +7,17 @@ type Config struct { Unset []*Variant `json:"unset,omitempty"` } -type Type string +type VariantType string const ( - TEXT Type = "text" - VARIABLE Type = "variable" + TEXT VariantType = "text" + VARIABLE VariantType = "variable" ) type Variant struct { - Arguments []string `json:"args"` - Type Type `json:"type,omitempty"` - Equator string `json:"equator,omitempty"` + Arguments []string `json:"args"` + Type VariantType `json:"type,omitempty"` + Equator string `json:"equator,omitempty"` } type Command struct {