Migration: go 1.18

This commit is contained in:
xjasonlyu
2022-03-26 15:27:24 +08:00
parent 8bb8423e50
commit d3fc3abbb7
13 changed files with 73 additions and 53 deletions

View File

@@ -8,7 +8,7 @@ import (
)
var (
_logCh = make(chan interface{})
_logCh = make(chan any)
_source = observable.NewObservable(_logCh)
)
@@ -18,7 +18,7 @@ type Event struct {
Time time.Time `json:"time"`
}
func newEvent(level Level, format string, args ...interface{}) *Event {
func newEvent(level Level, format string, args ...any) *Event {
event := &Event{
Level: level,
Time: time.Now(),