3 Star 1 Fork 0

唯品会 / vdl

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
genver.sh 292 Bytes
Copy Edit Raw Blame History
flike authored 2018-12-03 10:18 . first commit
#!/bin/bash
gitlog=`git log --date=iso --pretty=format:"%cd @%h" -1`
if [ $? -ne 0 ]; then
version="not a git repo"
fi
compile=`date +"%F %T %z"`" by "`go version`
cat << EOF | gofmt > version/gitlog.go
package version
const (
GitLog = "${gitlog}"
Compile = "${compile}"
)
EOF
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/vipshop/vdl.git
git@gitee.com:vipshop/vdl.git
vipshop
vdl
vdl
master

Search

344bd9b3 5694891 D2dac590 5694891