This is a creation in Article, where the information may have evolved or changed.
"The day After Tomorrow is the local" March three "Zhuang Folk Song Festival, the mood is good to take out the stash of things to share to everyone"
My basic development environment is Win7 32-bit,go1.4 windows/386,liteide X 27. In fact, the development environment is not important
First we install the Go GUI library, we are going to use TCL/TK's go binding, the author's git homepage is https://github.com/nsf/gothic
A download the third-party library locally:
we go into the _examples directory of the author's homepage, copy the code of any go example into liteide as a new go file, and then
You can click the Liteide "Compile" menu and then "Get", then Liteide will automatically download github.com/nsf/gothic , if prompted out
of path Please check the GOPATH environment variable and confirm that your file is Lil bit directory, when I encounter this problem, save the current go code file to another
Try clicking "Get" under the directory. If you're still not in the package, check to see if you have a git program installed. If you are not too familiar with this aspect please Baidu
"Go get" command, the function of this command is to automatically obtain a third-party package from the Internet.
B Installation Activetcl
After downloading to the third party package, we will install the TCL/TK development environment and go to the official website http://www.activestate.com/activetcl/downloads
Download a copy of the latest version of ACTIVETCL and install it.
C Make some changes
Now we are trying to run the current Go example source code file from the "Compile" menu in Liteide, which will prompt some errors. We need to make some more changes,
C1. Copy the directory include under C:\Tcl\ to C:\TDM-GCC-32\mingw32\ under "merge, incremental overwrite"
"If you're using mingw64, then copy it to c:\minw-64\x86_64-4.92...\mingW64\x86_64-mingw32\."
C2. C:\tcl\bin\ under the Tcl86.dll and Tk.dll copy C:\TDM-GCC-32\lib\ under, and renamed to Tcl8.6.dll and Tk8.6.dll
"If you're using MINGW64, copy it to c:\minw-64\x86_64-4.92...\mingW64\x86_64-mingw32\lib and change it to Tcl8.6.dll and Tk8.6.dll."
D OK, so you can run the example of a wayward
What run a Go source code file No, I don't know. Please go to Baidu homepage to find
E Release Application
To finish an application, you need to publish, put the C:\Tcl\Lib under the tcl8.6 folder and tk8.6 folder in the exe file in the same directory in the Lib folder , so you can on the target machine No need to install ACTIVETCL development environment and run the program directly, you can also see I write the application of "non-professional, limited" download please go to http://pan.baidu.com/s/1jGvIQ14
F about the library, by the way, several diagrams
TCL/TK's Go language GUI library, can use a lot of interface parts, you can download a vtcl enhanced version "This is done by the Chinese, almost lost on the Internet, this is from a Korean home page downloaded" to make based on tcl/ The TK language interface then extracts the related interface statements in the go source code, and I wrote several applications that use her to generate the interface and then extract the code. Download address please go to Http://pan.baidu.com/s/1eQ90oUY
"In fact, there is a use of their own application, but also with go and Tcl/tk_go Library to write, because the confidentiality of inconvenience to upload, in short, this library all the parts are very perfect"
Author TSL "Article if there are any errors please indicate that without the author's consent shall not be reproduced. 】
2015-4-19 10:50