Skip to content

Commit

Permalink
Build the code sample for string builder only fron Go 1.10 onwards
Browse files Browse the repository at this point in the history
  • Loading branch information
ccojocar authored and Cosmin Cojocar committed Nov 11, 2018
1 parent ae82798 commit 2695567
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testutils/source.go
Expand Up @@ -165,6 +165,8 @@ func main() {
e := test()
fmt.Println(e)
}`}, 0}, {[]string{`
// +build go1.10
package main
import "strings"
func main() {
Expand All @@ -173,7 +175,10 @@ func main() {
if err != nil {
panic(err)
}
}`}, 0}}
}`, `
package main
func dummy(){}
`}, 0}}

// SampleCodeG105 - bignum overflow
SampleCodeG105 = []CodeSample{{[]string{`
Expand Down

0 comments on commit 2695567

Please sign in to comment.