Versions in this module Expand all Collapse all v1 v1.2.0 May 15, 2024 Changes in this version + func GetFlash(w http.ResponseWriter, r *http.Request, name string) string + func GetUser(ctx context.Context) string + func SetFlash(w http.ResponseWriter, name string, value string) + func SetFlashPath(w http.ResponseWriter, name string, value string, path string) + func WithUser(ctx context.Context, user string) context.Context v1.1.0 May 8, 2024 v1.0.0 May 5, 2023 Changes in this version + type Cached struct + func (c *Cached[T]) Get(factory func() (T, error)) (T, error) + type Counter struct + ID int64 + Last int64 + Requests int64 + func (c *Counter) Inc() + type Stats struct + func (s *Stats) Inc(id int64) + func (s *Stats) Pop() []*Counter