-
Notifications
You must be signed in to change notification settings - Fork 6
/
query.go
34 lines (27 loc) · 8.3 KB
/
query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"encoding/base64"
"fmt"
"net/http"
)
func query_cur_region(w http.ResponseWriter, r *http.Request) {
}
//fmt.Fprint(w, string(b))
func query_region_list(w http.ResponseWriter, r *http.Request) {
}
func test() {
a := "GtQbCgw0Ny4xMDMuMjAuNDEQ1qwBGiNodHRwOi8vMTAuMTAxLjExLjEyOToyMjYwMS9yZWNoYXJnZToCQ05COWh0dHBzOi8vYXV0b3BhdGNoY24ueXVhbnNoZW4uY29tL2NsaWVudF9nYW1lX3Jlcy8yLjRfbGl2ZUo8aHR0cHM6Ly9hdXRvcGF0Y2hjbi55dWFuc2hlbi5jb20vY2xpZW50X2Rlc2lnbl9kYXRhLzIuNF9saXZlUosBaHR0cHM6Ly93ZWJzdGF0aWMubWlob3lvLmNvbS95cy9ldmVudC9pbS1zZXJ2aWNlL2luZGV4Lmh0bWw/aW1fb3V0PWZhbHNlJnNpZ25fdHlwZT0yJmF1dGhfYXBwaWQ9aW1fY2NzJmF1dGhrZXlfdmVyPTEmd2luX2RpcmVjdGlvbj1wb3J0cmFpdGIIMi40X2xpdmVwnJDeAoIBZGh0dHBzOi8vd3d3Lnl1YW5zaGVuLmNvbS93aWtpLzQzMD9zaWduX3R5cGU9MiZhdXRoX2FwcGlkPXdlYnZpZXdfaW5mbyZhdXRoa2V5X3Zlcj0xJmdhbWVfYml6PWhrNGVfY26QAfXu3AKaAVx7InJlbW90ZU5hbWUiOiAiZGF0YV92ZXJzaW9ucyIsICJtZDUiOiAiZDQ3MGY0MWRkYTNkMTVkNjYyYWRlZDhhYjMxOTdhODUiLCAiZmlsZVNpemUiOiA0NDA0faIBW3sicmVtb3RlTmFtZSI6ICJkYXRhX3ZlcnNpb25zIiwgIm1kNSI6ICI0MWY5OTZhN2RmYzk3Mm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ihU5ql9lqZKiXtqLtRZDhfI54NJuzLpMWIC9c+C7RR2xOwYo+Rg1eDPXqgn+HATupOJj1WgGrouiqVjILKp3S6VzRL8TAqcEIRP93xSBmiOhd8IEt3WglkuIFJ4PdzjpIz1VcfC2dWRArgbCmve0Aj4vMzfEdoeEgDrmodFtLpgQ1n6SPwcj2lA5obgrPSZgo8wuQRa4SE/nOkPMPti6Is3QiZF8PUkyROb79cWAQD2HYQDeh9lPVo6xsYo8CTb5xretaR8x5cXe3CmGgg6JyIRMWUAn+S0AByFa1oe2OvFbV0UET2HWAk+tkpIuDyClWdVZnOxVf0DW+mieoAOhp6GVjv4pVVgbG2rN8ULf64vl8Su7du8bl3mzj7Zj8c5Dp/PYu7M7J8Mwk3bJp0740g/FacgG6vO5mDrft0VcUUmwJpiXeZTatqfc3TuK8ZzsMpxeBKRaeGpQPWUMkOPz2prN7rLyGaMveWuH/313B7K8Wn9TbvwjcZwHB3D4jb0YDjoPjcgEY+uod67RI7Bu/RrfCoIZOFBtsJraoNLC70xYIT+4ICqunHxA8PzjNGqNdf8U34jldBl8ao+EHJHx3vZNmbKquLs7ugeMSxg=="
b, err := base64.StdEncoding.DecodeString(a)
if err != nil {
fmt.Printf("Error decoding string: %s ", err.Error())
return
}
fmt.Println(b)
//data, _ := ioutil.ReadFile("./proto/QueryCurrRegionHttpRsp.proto")
//var testt protoiface.MessageV3
//var k proto.Merger
//err := proto.UnmarshalMessageSetJSON(b, l)
//proto.Unmarshal(b, k)
//checkError(err)
//fmt.Println(err, l)
}