mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-18 23:03:02 -06:00
update dependencies (#296)
This commit is contained in:
parent
2aaec82732
commit
829a934d23
124 changed files with 2453 additions and 1588 deletions
21
vendor/codeberg.org/gruf/go-logger/clock.go
generated
vendored
Normal file
21
vendor/codeberg.org/gruf/go-logger/clock.go
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package logger
|
||||
|
||||
import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"codeberg.org/gruf/go-nowish"
|
||||
)
|
||||
|
||||
var (
|
||||
clock = nowish.Clock{}
|
||||
clockOnce = sync.Once{}
|
||||
)
|
||||
|
||||
// startClock starts the global nowish clock
|
||||
func startClock() {
|
||||
clockOnce.Do(func() {
|
||||
clock.Start(time.Millisecond * 10)
|
||||
clock.SetFormat("2006-01-02 15:04:05")
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue