github.com/alkemics/goflow@v0.2.1/wrappers/gonodes/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 12 func assert(b bool) { 13 if !b { 14 panic("assertion failed") 15 } 16 } 17 18 func main() { 19 var g GoNodes 20 21 g = NewGoNodes(true) 22 g.Run() 23 fmt.Println("Test done.") 24 25 g = NewGoNodes(false) 26 g.Run() 27 fmt.Println("Test done.") 28 29 fmt.Println("All tests done.") 30 }