亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

從 go 二進制文件動態構建和鏈接

從 go 二進制文件動態構建和鏈接

Go
函數式編程 2021-07-01 10:00:29
我的問題如下:我在機器上有一個二進制文件從那個二進制文件我需要編譯一個外部 .go 文件編譯后,我需要將編譯后的 go 文件鏈接到當前的二進制文件中,以便我可以使用剛剛編譯的 go 代碼。你認為這可能嗎?我做了一些研究,似乎不可能,但我可能忽略了一些東西。謝謝 :)第一個 go 二進制文件將包含類似的內容func main() {    // Here I need to compile an external go file (or package) which contains    // The definition of runFoo()    // Once the file/package is compiled and linked I need to call the compiled code    runFoo()    // Continue the execution process normally here}
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 238 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號