From 8dbe67b060a85c6cb28a52810903e31515926f78 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 26 Jan 2023 19:15:40 +0200 Subject: [PATCH] renamed EncloseExpr to EncloseExp struct for consistency --- expression.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/expression.go b/expression.go index 6b204cd..0356ad1 100644 --- a/expression.go +++ b/expression.go @@ -401,16 +401,16 @@ func (e *BetweenExp) Build(db *DB, params Params) string { // Enclose surrounds the provided nonempty expression with parenthesis "()". func Enclose(exp Expression) Expression { - return &EncloseExpr{exp} + return &EncloseExp{exp} } -// EncloseExpr represents a parenthesis enclosed expression. -type EncloseExpr struct { +// EncloseExp represents a parenthesis enclosed expression. +type EncloseExp struct { exp Expression } // Build converts an expression into a SQL fragment. -func (e *EncloseExpr) Build(db *DB, params Params) string { +func (e *EncloseExp) Build(db *DB, params Params) string { str := e.exp.Build(db, params) if str == "" {