From 011085cc5bda80cdc2f7ba7e3e8774d222aee94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=A2?= =?UTF-8?q?=D1=83=D1=85=D1=82=D0=B0=D1=80=D0=BE=D0=B2?= Date: Mon, 5 Feb 2024 07:33:17 +0500 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sea.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sea.go b/sea.go index 660f20c..2b0f209 100644 --- a/sea.go +++ b/sea.go @@ -27,10 +27,11 @@ type Sea struct { debug bool } -// Connect to database and connect to weed +// Окрывает БД sea, соединяется с weed. +// Если options = true, то будут выводиться отладочные сообщения func Connect(options ...bool) (*Sea, error) { debug := false - if len(options) > 0 && options[0] == true { + if len(options) > 0 && options[0] { debug = true }