Modify comment syntax error (#2572)

This commit is contained in:
王哈哈
2022-11-04 21:55:17 +08:00
committed by GitHub
parent 3db64c7d47
commit dac3600b53
24 changed files with 32 additions and 32 deletions

View File

@@ -7,12 +7,12 @@ import (
"github.com/zeromicro/go-zero/core/timex"
)
// A ElapsedTimer is a timer to track the elapsed time.
// An ElapsedTimer is a timer to track the elapsed time.
type ElapsedTimer struct {
start time.Duration
}
// NewElapsedTimer returns a ElapsedTimer.
// NewElapsedTimer returns an ElapsedTimer.
func NewElapsedTimer() *ElapsedTimer {
return &ElapsedTimer{
start: timex.Now(),

View File

@@ -2,7 +2,7 @@ package utils
import "github.com/google/uuid"
// NewUuid returns a uuid string.
// NewUuid returns an uuid string.
func NewUuid() string {
return uuid.New().String()
}