From 21b1291dbc843d0deaf4a6a1208a1cf351fcdd70 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 30 Sep 2025 11:20:30 -0400 Subject: [PATCH] struct name revert --- lazy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lazy.go b/lazy.go index 1bb15eb..f7e65e0 100644 --- a/lazy.go +++ b/lazy.go @@ -32,7 +32,7 @@ type RowMock struct { } // configuration for RandomGenerate -type RowConfig struct { +type Config struct { Query string Example any Keys []any @@ -47,7 +47,7 @@ type StructMock struct { } // generates mock data based on configuration to be used for sqlmock -func RandomRows(m RowConfig) (*RowMock, error) { +func RandomRows(m Config) (*RowMock, error) { //example struct cannot be nil and must be a struct if m.Example == nil { return nil, ErrBadExample @@ -113,7 +113,7 @@ func RandomRows(m RowConfig) (*RowMock, error) { }, nil } -func RandomStruct(c RowConfig) (*StructMock, error) { +func RandomStruct(c Config) (*StructMock, error) { if c.Example == nil { return nil, ErrBadExample }