chore(CI): add goreleaser config
This commit is contained in:
@@ -98,6 +98,7 @@ func testRequest(t *testing.T, url string) {
|
||||
|
||||
func TestPrintGoRushVersion(t *testing.T) {
|
||||
SetVersion("3.0.0")
|
||||
SetCommit("abcdefg")
|
||||
ver := GetVersion()
|
||||
PrintGoRushVersion()
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ func GetVersion() string {
|
||||
func PrintGoRushVersion() {
|
||||
fmt.Printf(`GoRush %s, Commit: %s, Compiler: %s %s, Copyright (C) 2023 Bo-Yi Wu, Inc.`,
|
||||
version,
|
||||
commit,
|
||||
commit[:7],
|
||||
runtime.Compiler,
|
||||
runtime.Version())
|
||||
fmt.Println()
|
||||
|
||||
Reference in New Issue
Block a user