https://github.com/wppurking/hosts_replacer
hosts_replacer
https://github.com/wppurking/hosts_replacer
Last synced: 10 months ago
JSON representation
hosts_replacer
- Host: GitHub
- URL: https://github.com/wppurking/hosts_replacer
- Owner: wppurking
- Created: 2013-08-10T13:32:23.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-12T14:35:00.000Z (almost 12 years ago)
- Last Synced: 2025-01-21T12:47:20.108Z (12 months ago)
- Language: Go
- Size: 6.35 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#hosts_replacer
使用 Golang 写的 hosts 文件替换应用
支持 windows XP 和 Mac OS.
编译使用下面参数, 减少将近 50% 体积
go build -ldflags '-w -s'
下面的解释都是 Google 来的
-w : 去掉DWARF调试信息,得到的程序就不能用gdb调试了
-s : 去掉符号表(然后panic时候的stack trace就没有任何文件名/行号信息了. 这个等价于普通C/C++程序被strip的效果)