Add framework core type
This commit is contained in:
18
framework/core.go
Normal file
18
framework/core.go
Normal file
@ -0,0 +1,18 @@
|
||||
package framework
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Core is the core struct of the framework
|
||||
type Core struct{}
|
||||
|
||||
// NewCore initialize the Core.
|
||||
func NewCore() *Core {
|
||||
return &Core{}
|
||||
}
|
||||
|
||||
// ServeHTTP implements the Handler interface
|
||||
func (c *Core) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// TODO
|
||||
}
|
Reference in New Issue
Block a user