File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 " countMatches " : true
3232 },
3333 {
34- {
35- " files " : [ "README.md" ],
36- " from " : " # chain33 官方插件系统(.*)" ,
37- " to " : " # chain33 官方插件系统(v${nextRelease.version})" ,
38- " results " : [
39- {
40- " file " : " README.md" ,
41- " hasChanged " : true,
42- " numMatches " : 1,
43- " numReplacements " : 1
44- }
45- ],
46- " countMatches " : true
47- },
48- }
34+ " files " : ["README.md"],
35+ " from " : " # chain33 官方插件系统(.*)" ,
36+ " to " : " # chain33 官方插件系统(v${nextRelease.version})" ,
37+ " results " : [
38+ {
39+ " file " : " README.md" ,
40+ " hasChanged " : true,
41+ " numMatches " : 1,
42+ " numReplacements " : 1
43+ }
44+ ],
45+ " countMatches " : true
46+ },
4947 ]
5048 }
5149 ],
Original file line number Diff line number Diff line change 2929func main () {
3030 flag .Parse ()
3131 if * versionCmd {
32- fmt .Println (fmt .Sprintf ("build time: %s" , version .BuildTime ))
32+ fmt .Println (fmt .Sprintf ("Build time: %s" , version .BuildTime ))
33+ fmt .Println (fmt .Sprintf ("System version: %s" , version .Platform ))
34+ fmt .Println (fmt .Sprintf ("Golang version: %s" , version .GoVersion ))
3335 fmt .Println (fmt .Sprintf ("plugin version: %s" , version .GetVersion ()))
3436 fmt .Println (fmt .Sprintf ("chain33 frame version: %s" , frameVersion .GetVersion ()))
3537 return
Original file line number Diff line number Diff line change 11package version
22
3+ import (
4+ "fmt"
5+ "runtime"
6+ )
7+
38//var version control
49var (
5- Version = "master "
10+ Version = "1.65.3 "
611 GitCommit string
712 BuildTime string
13+ // GoVersion system go version
14+ GoVersion = runtime .Version ()
15+ // Platform info
16+ Platform = fmt .Sprintf ("%s/%s" , runtime .GOOS , runtime .GOARCH )
817)
918
1019//GetVersion 获取版本信息
You can’t perform that action at this time.
0 commit comments