Skip to content

Commit 2695567

Browse files
ccojocarCosmin Cojocar
authored and
Cosmin Cojocar
committed
Build the code sample for string builder only fron Go 1.10 onwards
1 parent ae82798 commit 2695567

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testutils/source.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ func main() {
165165
e := test()
166166
fmt.Println(e)
167167
}`}, 0}, {[]string{`
168+
// +build go1.10
169+
168170
package main
169171
import "strings"
170172
func main() {
@@ -173,7 +175,10 @@ func main() {
173175
if err != nil {
174176
panic(err)
175177
}
176-
}`}, 0}}
178+
}`, `
179+
package main
180+
func dummy(){}
181+
`}, 0}}
177182

178183
// SampleCodeG105 - bignum overflow
179184
SampleCodeG105 = []CodeSample{{[]string{`

0 commit comments

Comments
 (0)