We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8ab1b commit 7ed4957Copy full SHA for 7ed4957
google/internal/externalaccount/header.go
@@ -32,6 +32,8 @@ func goVersion() string {
32
s = s[:p]
33
}
34
return s
35
+ } else if p := strings.IndexFunc(s, unicode.IsSpace); p >= 0 {
36
+ s = s[:p]
37
38
39
notSemverRune := func(r rune) bool {
google/internal/externalaccount/header_test.go
@@ -5,6 +5,7 @@
5
package externalaccount
6
7
import (
8
+ "runtime"
9
"testing"
10
11
"github.com/google/go-cmp/cmp"
@@ -43,4 +44,5 @@ func TestGoVersion(t *testing.T) {
43
44
t.Errorf("got(-),want(+):\n%s", diff)
45
46
47
+ version = runtime.Version
48
0 commit comments