17 lines
235 B
Go
17 lines
235 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-spring/spring-core/gs"
|
|
)
|
|
|
|
type Test struct{}
|
|
|
|
func main() {
|
|
http.HandleFunc("/echo", func(w http.ResponseWriter, r *http.Request) {
|
|
w.Write([]byte("hello world!"))
|
|
})
|
|
gs.Run()
|
|
}
|