我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在主Go应用中构建新的Golang控制台应用?

How Build New Golang Console App in a Main Go App? mean on a system without go compilers with main app.

example :

$go build main.go//this is main app (i dont know how make this!)

./main file.go

and after this , build file.go and save as file. also can change OS,ARCH in main.go..

how can make this?

If you don't have go on your system, you can use docker to build image with your program and run it in container

近期文章

  • Golang:解决HTTP414,请求URI太长
  • 发送HTTP响应后发送通知
  • Golang中的管道和管道Redis函数是什么
  • 将map [string] interface {}转换为有效的Mongo查询
  • TCP将Stdout发送到客户端,并从客户端读取Stdin
  • 为什么我在使用大猩猩多路复用的golang路线上收到404?
  • Flatbuffers GoLang-在序列化和反序列化数据时无法理解我的错误,导致无法检索数据
  • Openshift Golang力https
  • 试图找到一段代码,负责发送带有RST标志的TCP数据包
  • Google Cloud Storage图片上传
  • 在Go 1.7.5上安装redis.v5
  • 使用Go-VCR测试Go Web抓取工具
  • Golang,PostgreSQL的rows.next()恐慌
  • Go gorm many2many中的重复ID
  • 在Beanstalk中对服务器进行负载平衡
  • 从golang运行cqlsh shell命令
  • 无法获得Gomobile绑定以使用Java
  • 保持频道开放,等待其他玩家
  • 如何在Golang中将对象放入对象
  • Golang API-MySQL连接但查询为空

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华