2026-01-13 00:08:49 +08:00
|
|
|
package main
|
2026-01-21 17:44:51 +08:00
|
|
|
|
|
|
|
|
import (
|
2026-01-21 19:40:21 +08:00
|
|
|
"net/http"
|
2026-01-21 17:44:51 +08:00
|
|
|
|
|
|
|
|
"github.com/go-spring/spring-core/gs"
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-21 19:40:21 +08:00
|
|
|
type Test struct{}
|
|
|
|
|
|
2026-01-21 17:44:51 +08:00
|
|
|
func main() {
|
2026-01-21 19:40:21 +08:00
|
|
|
http.HandleFunc("/echo", func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
w.Write([]byte("hello world!"))
|
|
|
|
|
})
|
|
|
|
|
gs.Run()
|
2026-01-21 17:44:51 +08:00
|
|
|
}
|