机器人下载地址: http://index.jsx6.com/%e6%9c%ba%e5%99%a8%e4%ba%ba.exe

?
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  
#新建文件 lxn.go
#=============================================文件如下  begin==============================
package main
 
import (
    "github.com/lxn/walk"
    "github.com/lxn/walk/declarative"
    "net/http"
    "io/ioutil"
)
 
func main() {
    var inTE, outTE *walk.TextEdit
 
    MainWindow{
        Title:   "降省心-聊天机器人-qq:1348550820",
        MinSize: Size{390, 200},
        Layout:  VBox{},
        Children: []Widget{
            HSplitter{
                Children: []Widget{
                    TextEdit{AssignTo: &inTE},
                    TextEdit{AssignTo: &outTE, ReadOnly: true},
                },
            },
            PushButton{
                Text: "点 击 发 送 - [注:服务器在国外,网络延迟比较大.耐心等待回复]",
                OnClicked: func() {
 
                    resp,err := http.Get("http://api.jsx6.com/go-tuling.php?param="+string(inTE.Text()))
                    if(err != nil) {
                        outTE.SetText("请求失败")
                    }
                    defer resp.Body.Close()
                    body,err := ioutil.ReadAll(resp.Body)
                    if(err != nil) {
                        outTE.SetText("读取失败")
                    }
 
                    outTE.SetText(string(body))
                },
            },
        },
    }.Run()
}
#=============================================文件内容  end==============================
 
 
#新建文件 test.manifest
#============================================文件内容   begin============================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="SomeFunkyNameHere" type="win32"/>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
        </dependentAssembly>
    </dependency>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <dpiAware>true</dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>
#==========================================文件内容    end===============================
 
 
#依次执行如下命令
rsrc -manifest test.manifest -o rsrc.syso
go build -ldflags="-H windowsgui"
#生成文件 *.exe ,运行
 
 
  


---------------------------------------------------------------------------------------------
不忘初心 方得始终!

唯有志存高远,方能风行天下。

道之所存,虽千万人吾往矣! 情之所钟,虽千万里吾念矣~

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。