From c3121f425eb209d1901cc778e5f4743b72bdd730 Mon Sep 17 00:00:00 2001 From: Yun Date: Tue, 7 May 2024 20:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9go.mod=E4=B8=BAgithub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 2 +- option.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 9c28ee0..aaf2df9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module code.yun.ink/pkg/timerx +module github.com/yuninks/timerx go 1.19 diff --git a/option.go b/option.go index 6656c45..050d203 100644 --- a/option.go +++ b/option.go @@ -20,8 +20,16 @@ func newOptions(opts ...Option) Options { return o } +// 设置日志 func SetLogger(log Logger) Option { return func(o *Options) { o.logger = log } } + +// 设定时区 +func SetTimeZone(zone string) Option { + return func(o *Options) { + // todo + } +}