docs: add simple Go guide
Signed-off-by: Tanguy ⧓ Herrmann <tanguy@dagger.io>
This commit is contained in:
16
docs/plans/go-ci/hello/main.go
Normal file
16
docs/plans/go-ci/hello/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"dagger.io/testgreetci/greeting"
|
||||
)
|
||||
|
||||
func main() {
|
||||
name := os.Getenv("NAME")
|
||||
if name == "" {
|
||||
name = "John Doe"
|
||||
}
|
||||
fmt.Printf(greeting.Greeting(name))
|
||||
}
|
Reference in New Issue
Block a user