当前位置:网站首页>Golang is packaged and released to various platforms
Golang is packaged and released to various platforms
2022-07-28 18:40:00 【Compose】
Use Golang The convenience is that you can package binary files directly
No configuration required Golang The environment and dependence can run directly
And performance improvement ratio Java good , So some of my projects use Golang Development development environment :
- Windows 10
- GoLand 2020.2
- Go 1.15.1
Package and publish to Centos
set GOOS=linux
set GOARCH=amd64
# open in Terminal
go build main.go
go build ./ When multiple files Package and publish to Windows
set GOOS=windows
set GOARCH=amd64
# open in Terminal
go build main.go
go build ./ When multiple files Packaging attachable parameters
-v The package name is displayed at compile time
-p n Enable concurrent compilation , By default, this value is CPU Logic auditing
-a Forced rebuild
-n Print all the commands that will be used when compiling , But not really executed
-x Print all the commands that will be used when compiling
-race Turn on race detection Supported by OS Follow ARCH
go tool dist list
aix/ppc64
android/386
android/amd64
android/arm
android/arm64
darwin/amd64
darwin/arm64
dragonfly/amd64
freebsd/386
freebsd/amd64
freebsd/arm
freebsd/arm64
illumos/amd64
js/wasm
linux/386
linux/amd64
linux/arm
linux/arm64
linux/mips
linux/mips64
linux/mips64le
linux/mipsle
linux/ppc64
linux/ppc64le
linux/riscv64
linux/s390x
netbsd/386
netbsd/amd64
netbsd/arm
netbsd/arm64
openbsd/386
openbsd/amd64
openbsd/arm
openbsd/arm64
plan9/386
plan9/amd64
plan9/arm
solaris/amd64
windows/386
windows/amd64
windows/arm边栏推荐
- 明德生物:公司暂未有产品被列入WHO推荐清单
- Tencent Tang Daosheng: open source is a new mode of production and collaboration in the era of industrial Internet
- Gaode map realizes customized small blue dots, customized point markers, drawing polygon / circular areas, and displaying or hiding customized point markers according to the movement of the map
- Huawei ZTE lost the lawsuit in the UK and will be banned if it does not pay the patent licensing fee!
- Principle, classification and requirements of antenna
- Ue5 gas learning notes 1.1 capability system component
- 深圳线下报名|StarRocks on AWS:如何对实时数仓进行极速统一分析
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
- What are the conditions for zero foundation learning software testing?
- 苹果开发完整的苹果证书与描述文件创建流程
猜你喜欢

Random talk on GIS data (VI) - projection coordinate system

Introduction to the principle of signal source

Detailed explanation of network RJ45 interface

实验楼----PHP大法

腾讯汤道生:开源是产业互联网时代新的生产方式和协作模式

当Golang遇到高并发秒杀

欧美六国最快5日达 菜鸟推出快线产品 优化“端到端”履约服务

深圳线下报名|StarRocks on AWS:如何对实时数仓进行极速统一分析

不理解模块化、组件化、插件化的区别怎么行?

It is said that software testing is the worst in the IT industry. Is that so?
随机推荐
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
Principle, classification and requirements of antenna
Go并发详解之一
Experimental building - PHP Dafa
NDK series (5): from introduction to practice, JNI explodes the liver and explains everything in detail!
PyQt5快速开发与实战 5.3 多线程
Iptables firewall port rule configuration
UE5 GAS 学习笔记 1.8 游戏特效(GameplayCue)
Modifier modifier modifier of solidity _;
Multithreading and high concurrency -- source code analysis AQS principle
Seven steps, in-depth interpretation of data meaning
What role does low code play in the digital transformation?
冒泡排序和相关视频
深圳线下报名|StarRocks on AWS:如何对实时数仓进行极速统一分析
.net swagger
有一种密码学专用语言叫做ASN.1
Go's sleep
VSC上写Go出现expected ‘package‘, found ‘EOF‘
数字化洪流 :企业转型中的资源重组与战略冲突
MongoDB初始化