diff --git a/bfcodegen/csid-generate.template b/bfcodegen/csid-generate.template index b141d64..b82aac0 100644 --- a/bfcodegen/csid-generate.template +++ b/bfcodegen/csid-generate.template @@ -171,7 +171,7 @@ func (i *{{.Name}}) String() string { if i == nil { return "" } - return string(i) + return string(*i) } func (i {{.Name}}) Prefix() string { diff --git a/bfcodegen/enum-generate.template b/bfcodegen/enum-generate.template index 425a6c1..ad5d1f4 100644 --- a/bfcodegen/enum-generate.template +++ b/bfcodegen/enum-generate.template @@ -73,7 +73,7 @@ func (e *{{.EnumTypeName}}) String() string { if e == nil { return "" } - return string(e) + return string(*e) } {{end}} diff --git a/bfcodegen/id-generate.template b/bfcodegen/id-generate.template index 1181a93..1b151e3 100644 --- a/bfcodegen/id-generate.template +++ b/bfcodegen/id-generate.template @@ -25,7 +25,7 @@ func (i *{{.Name}}) String() string { if i == nil { return "" } - return string(i) + return string(*i) } func (i {{.Name}}) ObjID() (primitive.ObjectID, error) { diff --git a/goextVersion.go b/goextVersion.go index 6d2ba82..0337b9b 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.534" +const GoextVersion = "0.0.535" -const GoextVersionTimestamp = "2024-10-22T09:40:53+0200" +const GoextVersionTimestamp = "2024-10-22T09:41:59+0200"