golang 编译 去掉 windows 黑框
发表于|更新于|golang
1 | go build -ldflags="-H windowsgui" -o webview-example.exe |
文章作者: developer
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Dev!
相关推荐
2019-03-01
golang 时间 格式化
go格式化时间必须使用6-1-2-3-4-5这个时间点 时间戳1fmt.Println(time.Now().Unix()) 格式化1fmt.Println(time.Now().Format("2006-01-02 15:04:05")) 时间戳格式化1time.Unix(1389058332, 0).Format("2006-01-02 15:04:05") 时间解析1234the_time, err := time.Parse("2006-01-02 15:04:05", "2014-01-08 09:04:41")if err == nil { unix_time := the_time.Unix()} 其他操作12the_time := time.Date(2014, 1, 7, 5, 50, 4, 0, time.Local)unix_time := the_time.Unix()
2019-03-02
golang 类型转换
转换为 字符串如果强制类型转换失败可以使用strconv包 1strconv.FormatBool(bool) 即可将bool转为str
2017-08-24
windows10 php7 imagick 拓展安装 ImageMagick
问题php大神们做出这个imagick拓展,但是实在是做的变态,你在网上基本上随便搜都是不知道怎么装,php官网里,一大群老外也看不懂这玩意怎么装,主要原因在于,php版本庞杂,还有x86 x64 nts ts,对应的imagick版本也不一定相同,imagick第一道关还算容易,总还是有办法装上,imagick对应的ImageMagick程序又不一定了,又出现庞杂的版本,即使官网给出的依赖版本也没有效果,同时也没有官方任何地方给出一个合理的安装方法,真是变态从中文到英文,从php文档到百度资料 使用环境虽然抱怨php大神,但是我仍然相信这些恼人的问题是由于系统环境造成的,所以一下方法只对应这里所列的环境,其他环境可以做个参考 1234windows10 x64php7.0.12 NTSApache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9phpStudy2016 正确方法1 下载拓展下载地址一: http://windows.php.net/downloads/pecl/releases/imagick/下载地址二: http...
2019-10-02
golang 腾讯云 cos 上传文件 刷新 cdn
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990package mainimport ( "context" "fmt" "net/url" "os" "strings" cdn "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdn/v20180606" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" "github.com/tencentcloud/tencentcloud-sdk-go/t...
2018-05-05
windows BashOnWindows 安装 使用 swoole sftp
开启win10 BashOnWindows安装1234567891011121314151617# 先升级apt-get ,不然很多包会找不到sudo apt-get update# 所有其他你需要的扩展sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-gmp php7.0-json php7.0-mysql php7.0-opcache php7.0-readline php7.0-sqlite3 php7.0-tidy php7.0-xml php7.0-bcmath php7.0-bz2 php7.0-intl php7.0-mbstring php7.0-mcrypt php7.0-soap php7.0-xsl php7.0-zip # pecl 需要 php-pearsudo apt install php-pear# 可能提示 phpize 错误,需要 php-devpecl install swoole# 按照提示安装 php7.0-devsudo apt install php7.0-dev#...
2018-01-18
redis下载 配置
windows版https://github.com/MicrosoftArchive/redis/releases 绑定多个ipbind 127.0.0.1 172.16.1.192
公告
This is my Blog