From 2161c201bcf96cedd3b1069e2fd94bad3490846f Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 30 Sep 2025 17:39:40 -0400 Subject: [PATCH] reimplementing db tag --- lazy.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lazy.go b/lazy.go index 9e7c708..525c23f 100644 --- a/lazy.go +++ b/lazy.go @@ -149,11 +149,11 @@ func RandomStruct(c StructConfig) (*StructMock, error) { filled = reflect.Append(filled, reflect.ValueOf(c.Example)) for y := 0; y < maxFieldCount; y++ { field := retType.Field(y) - // dbTag := field.Tag.Get(DB_TAG) - // // no db tag, we skip - // if dbTag == "" { - // continue - // } + dbTag := field.Tag.Get(DB_TAG) + // no db tag, we skip + if dbTag == "" { + continue + } //get random value nv := kindToRandom(field)