You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/.codeeui.sh

13 lines
370 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#使用vendor文件夹构建
export GO15VENDOREXPERIMENT=1
export GOPROXY=https://goproxy.cn,direct
##在工作目录创建源文件夹
mkdir -p $GOPATH/src/dtapps/golibrary/
##拷贝代码到创建好的目录
cp -rf . $GOPATH/src/dtapps/golibrary/
##进入项目
cd $GOPATH/src/dtapps/golibrary/
##构建在GOPATH下生成构建包
go mod tidy
##列出文件
ls -lh