Go 1.24 omitzero
解決 omitempty 的限制
Mar 7, 20252 min read29
Search for a command to run...
Articles tagged with #golang
解決 omitempty 的限制
Context 需求:需要準備一個穩定的方式打包某個 Go Package (在 github 上) 編出的執行檔進一個 Debian package ,因為他不在 native 的 apt repository 裡面。 例如打包成這樣 /opt/mukyu/gotoolbla/bin/gotoolbla /opt/mukyu/gotoolbla/man/.... 一開始,我是先把 Github release page 裡面的 source code pack 下載下來,搭配 shell sc...