12345678910111213141516171819 |
- package services
- import (
- "fmt"
- "github.com/rdlucklib/rdluck_tools/http"
- )
- const (
- ServerCheckUrl = "http://127.0.0.1:7007/mysteel_chemical/server"
- )
- func ServerCheck() {
- body, err := http.Get(ServerCheckUrl)
- if err != nil {
- fmt.Println("ServerCheck Err:" + err.Error())
- return
- }
- fmt.Println("ServerCheck Result:" + string(body))
- }
|