From 10bb8b012a9cc7318e2075fa21b29b969120f6fc Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Thu, 26 Oct 2023 12:51:13 +0200 Subject: [PATCH] fix --- builq.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builq.go b/builq.go index a936e40..a637147 100644 --- a/builq.go +++ b/builq.go @@ -42,9 +42,9 @@ type OnelineBuilder struct { type BuildFn = func(format constString, args ...any) *Builder // BuilderFunc return builder and shorthand func to build queries. See examples. -func BuilderFunc() (Builder, BuildFn) { +func BuilderFunc() (*Builder, BuildFn) { var b Builder - return b, b.Addf + return &b, b.Addf } // Addf formats according to a format specifier, writes to query and appends args.