Jaypore CI

> Jaypore CI: Minimal, Offline, Local CI system.
Log | Files | Refs | README | LICENSE

main.go (355B)


      1 // Package main is a tiny demo for the sub-pipeline example.
      2 package main
      3 
      4 import "fmt"
      5 
      6 // Add returns the sum of a and b.
      7 func Add(a, b int) int {
      8 	return a + b
      9 }
     10 
     11 // Greet returns a greeting string.
     12 func Greet(name string) string {
     13 	if name == "" {
     14 		name = "world"
     15 	}
     16 	return fmt.Sprintf("Hello, %s!", name)
     17 }
     18 
     19 func main() {
     20 	fmt.Println(Greet(""))
     21 }