github.com/alkemics/goflow@v0.2.1/wrappers/ctx/graph/main.go (about)

     1  // Code generated by lib-go/goflow DO NOT EDIT.
     2  
     3  //go:build !codeanalysis
     4  // +build !codeanalysis
     5  
     6  package main
     7  
     8  import (
     9  	"fmt"
    10  
    11  	"context"
    12  )
    13  
    14  func assert(b bool) {
    15  	if !b {
    16  		panic("assertion failed")
    17  	}
    18  }
    19  
    20  func main() {
    21  	var g Ctx
    22  
    23  	g = NewCtx()
    24  	g.Run(context.Background())
    25  	fmt.Println("Test done.")
    26  
    27  	fmt.Println("All tests done.")
    28  }