timer

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() wish.Middleware

Middleware returns a middleware that logs the elapsed time of the session.

This must be called as the last middleware in the chain.

func MiddlewareWithFormat

func MiddlewareWithFormat(format string) wish.Middleware

MiddlewareWithFormat returns a middleware that logs the elapsed time of the session. It accepts a format string to print the elapsed time.

This must be called as the last middleware in the chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL