随笔分类 -  GO

摘要:Go交叉编译(Go语言Mac/Linux/Windows下交叉编译) 2019/11/21 Chenxin 在很多时候,由于开发的方便,会有这样的场景出现,使用Mac开发或使用Windows开发,需要编译成Linux系统的执行文件,那么如何做到?Go语言提供了非常方便的命令行操作,即可实现。 1.M 阅读全文
posted @ 2022-12-10 17:19 xiondun 阅读(770) 评论(0) 推荐(0) 编辑
摘要:解决go包管理代理网址无法访问:proxy.golang.org 默认使用的是proxy.golang.org,在国内无法访问,如下图所示: bogon:demo-path user$ make build_darwin rm -rf target/demo-0.6.0 mkdir -p targe 阅读全文
posted @ 2021-08-12 17:36 xiondun 阅读(591) 评论(0) 推荐(0) 编辑
摘要:Windows 代码实例: package main import ( "os/exec" "syscall" ) func main() { // 有GUI调用 exec.Command(`cmd`, `/c`, `start`, `https://www.jianshu.com`).Start( 阅读全文
posted @ 2020-05-23 10:14 xiondun 阅读(900) 评论(0) 推荐(0) 编辑
摘要://golang图片式水印处理 //未实现Web上传等代码... //sam //2013.6.19 //http://zituo.net package main import ( "fmt" "image" "image/draw" "image/jpeg" "image/png" "os" ) 阅读全文
posted @ 2020-04-22 15:32 xiondun 阅读(711) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示