package
0.1.0
Repository: https://github.com/cjey/gbase.git
Documentation: pkg.go.dev

# Functions

GetRealSession use to get real session name.
GetSession use to get session name if it has real session, otherwise return context name instead.
an official Context, an Env and a Logger.
NewEnv return a simple Env, use sync.Map as it's storage.
NewLogger return a Logger, with name and location.
SetSession use to set real session name.
Simple return a very simple context, without name, without location, and use zap.S() as internal logger.

# Variables

variable alias.
variable alias.

# Interfaces

Context extend default context package, make it better It should has name, location, environment and logger.
Env should used as a map, but it has an inherited mode, overlay liked.
Logger is a logger, but it has name and location.

# Type aliases

type alias.
LocationJoiner will generate a full location after joining the origin and given.
NameJoiner will generate a full name after joining the origin and given.