Add main.go example
This commit is contained in:
@@ -33,6 +33,18 @@ Configure a Go runtime as global tool.
|
||||
|
||||

|
||||
|
||||
The `main.go` file could similar to the one below.
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("hello world")
|
||||
}
|
||||
```
|
||||
|
||||
The final `Jenkinsfile` looks similar to the solution below.
|
||||
|
||||
```groovy
|
||||
|
||||
Reference in New Issue
Block a user