Add framework core type

This commit is contained in:
Muyao CHEN
2024-09-05 17:30:59 +02:00
parent b96656a469
commit 63d5d0dc59
2 changed files with 27 additions and 7 deletions

18
framework/core.go Normal file
View 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
}