gospt/ctx/context.go
jjohnstondev dd06c4a596 ctx
2023-01-07 16:03:43 -08:00

23 lines
281 B
Go

package ctx
import (
"context"
"log"
"os"
)
type Context struct {
context.Context
*log.Logger
Debug *log.Logger
}
func NewContext(ctx context.Context) *Context {
out := &Context{
ctx,
log.New(os.Stdout, "LOG:", 0),
log.New(os.Stdout, "DEBUG:", 1),
}
return out
}