Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

appcontext

usage:

package main
import"github.com/ituoga/appcontext"varlocaleKey= appcontext.Key[string]("localKey")
funcWithLocale(ctx context.Context, localestring) context.Context {
returnappcontext.With(ctx, localeKey, locale)
}
funcLocale(ctx context.Context) (string, bool) {
returnappcontext.Get(ctx, localeKey)
}

or check appcontext_test.go

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages