16 lines
246 B
Go
16 lines
246 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
"git.nefrace.ru/nefrace/nechotron"
|
||
|
)
|
||
|
|
||
|
func UserLogger(next nechotron.UpdateHandler) nechotron.UpdateHandler {
|
||
|
return func(u *nechotron.Update) error {
|
||
|
log.Println(u.From().FirstName)
|
||
|
next(u)
|
||
|
return nil
|
||
|
}
|
||
|
}
|