a 首先打開網頁 http://wiki.tcl.tk/1270git
b 把網頁裏提到的第一段代碼【注意第一段只到wm resizable . 0 0結束】複製到go源代碼的init_script字符串常量裏github
package mainspa
import "github.com/nsf/gothic"
ip
const init_script = `字符串
#把Tcl/Tk源代碼複製到這個常量裏
it
`import
func main() {im
ir := gothic.NewInterpreter(init_script)img
<-ir.Doneco
}
c 在LiteIDE裏run ,運行效果以下