Update go dependencies
This commit is contained in:
parent
f9624cbe46
commit
307bf76454
280 changed files with 54728 additions and 2991 deletions
13
vendor/github.com/valyala/fasthttp/coarseTime.go
generated
vendored
Normal file
13
vendor/github.com/valyala/fasthttp/coarseTime.go
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package fasthttp
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// CoarseTimeNow returns the current time truncated to the nearest second.
|
||||
//
|
||||
// Deprecated: This is slower than calling time.Now() directly.
|
||||
// This is now time.Now().Truncate(time.Second) shortcut.
|
||||
func CoarseTimeNow() time.Time {
|
||||
return time.Now().Truncate(time.Second)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue