rpc_safe_guard_01/cmd/rpc_saft_guard/main.go

18 lines
258 B
Go
Raw Permalink Normal View History

2023-07-13 17:39:26 +08:00
package main
import (
"net/http"
"rpc_safe_guard_01/pkg/handler"
"rpc_safe_guard_01/pkg/otto"
)
func main() {
otto.InitOtto()
http.HandleFunc("/", handler.Handler)
err := http.ListenAndServe("localhost:8081", nil)
if err != nil {
panic(err)
}
}