lang: Move StructTag const into lang/types

This constant value is strongly tied to the language, and little to do
with the engine. Move the definition into the lang/types package to
prevent circular imports between lang/types and engine/util.

Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
Joe Groocock
2021-02-01 16:58:19 +00:00
parent 845d7ff188
commit c950568f1b
2 changed files with 6 additions and 3 deletions

View File

@@ -25,6 +25,11 @@ import (
"github.com/purpleidea/mgmt/util/errwrap"
)
const (
// StructTag is the key we use in struct field names for key mapping.
StructTag = "lang"
)
// Basic types defined here as a convenience for use with Type.Cmp(X).
var (
TypeBool = NewType("bool")