From cdf00b5c9922ec472a868af74986ea31d006412b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 14 May 2022 15:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7time=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.go | 3 +++ time.go | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/init.go b/init.go index 975b340..d33d6a7 100644 --- a/init.go +++ b/init.go @@ -22,6 +22,8 @@ var ( String *stringOperate // Struct ... Struct *ownStruct + // Time ... + Time *ownTime ) func init() { @@ -32,4 +34,5 @@ func init() { JSON = &ownJSON{} String = &stringOperate{} Struct = &ownStruct{} + Time = &ownTime{} } diff --git a/time.go b/time.go index 89c7752..18b7b92 100644 --- a/time.go +++ b/time.go @@ -9,6 +9,14 @@ package util import "time" +// ownTime ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 15:24 2022/5/14 +type ownTime struct { +} + // GetCurrentFormatTime 获取当前时间的格式化时间(秒) // // Author : go_developer@163.com<白茶清欢>