Modify comment syntax error (#2572)
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user