| 123456789101112131415161718192021222324 |
- package route
- import (
- "encoding/json"
- "fmt"
- "opennamu/route/tool"
- )
- func Api_func_ip(call_arg []string) {
- db_set := map[string]string{}
- json.Unmarshal([]byte(call_arg[0]), &db_set)
- other_set := map[string]string{}
- json.Unmarshal([]byte(call_arg[1]), &other_set)
- ip_data := tool.IP_parser(db_set, other_set["data"], other_set["ip"])
- new_data := map[string]string{}
- new_data["data"] = ip_data
- json_data, _ := json.Marshal(new_data)
- fmt.Print(string(json_data))
- }
|