18 lines
258 B
Go
18 lines
258 B
Go
|
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)
|
||
|
}
|
||
|
}
|