太好了,我逐漸開始理解一切(並不)
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"Crimson-Gatekeeper/internal/application"
|
||||
"net/http"
|
||||
|
||||
"github.com/go-spring/spring-core/gs"
|
||||
)
|
||||
|
||||
type Test struct{}
|
||||
|
||||
func main() {
|
||||
gs.Provide(application.New).AsServer()
|
||||
http.HandleFunc("/echo", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("hello world!"))
|
||||
})
|
||||
gs.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user