##
type (
Human struct {
age int
}
Men struct {
Human
}
)
person := Human{ 20 }
此时,我想把 Human 转为 Men 类型的却无法转换
打包体积过大
未做处理前, 我们的项目打包体积为 63M
- 初步压缩
go build -ldflags '-w -s',此处体积 30M - upx 去壳
upx build-file, 此处体积 13M
##
type (
Human struct {
age int
}
Men struct {
Human
}
)
person := Human{ 20 }
此时,我想把 Human 转为 Men 类型的却无法转换
未做处理前, 我们的项目打包体积为 63M
go build -ldflags '-w -s' ,此处体积 30Mupx build-file , 此处体积 13M本文链接:https://note.lilonghe.net/post/golang-question.html
-- EOF --
作者
lilonghe
发表于2017-10-13 13:02
,添加在分类
Technology
下
,并被添加「
golang
」标签
,最后修改于2018-01-31 21:11
署名-非商业性使用-禁止演绎 (CC BY-NC-ND 4.0)
Copyright ©2015-2025 lilonghe. All rights reserved.