From 11d1920b04a240a4a342487b748f266148d2814e Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Thu, 21 Feb 2019 16:31:48 +0100 Subject: [PATCH] Add time utils --- internal/util/time.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 internal/util/time.go diff --git a/internal/util/time.go b/internal/util/time.go new file mode 100644 index 0000000..feb0cd7 --- /dev/null +++ b/internal/util/time.go @@ -0,0 +1,21 @@ +// Copyright 2019 Sorint.lab +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied +// See the License for the specific language governing permissions and +// limitations under the License. + +package util + +import "time" + +func TimePtr(t time.Time) *time.Time { + return &t +}