go build -ldflags "-X setting/base._version_=v1.0"编译_version_变量获取不到

EddieChan1993 · · 679 次点击
更多评论
是你参数设置的问题,应该是importpath,你setting导入包路径+._version_ ``` -X importpath.name=value Set the value of the string variable in importpath named name to value. Note that before Go 1.5 this option took two separate arguments. Now it takes one argument split on the first = sign. ```
#1
我就是路径,但是路径不对,应该怎么填这个路径。
#2