1.

go get github.com/akavel/rsrc
2.

创建manifest文件, 命名:main.exe.manifest :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="x86"
name="controls"
type="win32"
></assemblyIdentity>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>
3. 生成syso文件

src_windows_amd64 -manifest main.exe.manifest -ico main.ico -o main.syso

4. 将生成的main.syso文件拷贝到main.go同级目录

5. 编译生成main.exe

go build -o main.exe Project/main

最终效果图:

最新文章

  1. HDFS副本存放策略
  2. linux档案与文件的的压缩与打包
  3. Unit Testing a zend-mvc application
  4. poj2104
  5. driver.startActivity 启动app出现 An unknown server-side error occurred while processing the command
  6. Android切换页面效果的实现二:WebView+ViewPager
  7. C语言中输入输出重定,freopen()妙用。
  8. 如何在RecyclerView上面实现&quot;拖放&quot;和&quot;滑动删除&quot;-1
  9. jq手风琴效果
  10. Groovy实现原理分析——准备工作
  11. Python3+Appium安装使用教程
  12. Ubuntu 16.04.2 配置VNC
  13. python算法双指针问题:二分查找
  14. [math][mathematica] mathematica入门
  15. Hibernate 再接触 基础配置 搭建Log4j环境 Junit日志环境等
  16. libgdx学习记录16——资源加载器AssetManager
  17. OneZero第三次站立会议(2016.3.23)
  18. PAT甲1038 Recover the smallest number
  19. EF生成的SQL语句执行顺序问题。
  20. 常见排序算法总结 -- java实现

热门文章

  1. 利用ST MCU内部的基准参考电压监测电源电压及其它
  2. HCNP学习笔记之ICMP协议与ping原理以及用Python实现ping
  3. Python3.x: pyodbc+FreeTDS+UinxODBC连接sybase数据库(Linux系统)
  4. js算法-快速排序(Quicksort)
  5. 并发-ThreadLocal源码分析
  6. 《大型网站系统与JAVA中间件实践》读书笔记-数据访问层
  7. AtCoder Regular Contest 097
  8. 5分钟理解Centos7防火墙firewalld
  9. EYES组——软件体系结构上机规划
  10. Android中获取并设置屏幕亮度