20 lines
290 B
Go
20 lines
290 B
Go
|
package views
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/tigorlazuardi/redmage/config"
|
||
|
)
|
||
|
|
||
|
type Context struct {
|
||
|
Config *config.Config
|
||
|
Request *http.Request
|
||
|
}
|
||
|
|
||
|
func NewContext(config *config.Config, request *http.Request) *Context {
|
||
|
return &Context{
|
||
|
Config: config,
|
||
|
Request: request,
|
||
|
}
|
||
|
}
|