Skip to content

Examples of Processes With Go Node

Process With Go Node

$ cat go.strm

// Name process as go
name go

// read from the go.csv file
in go.csv -> input

// create a computational go node
node go_usernode(input)(output)

// write out the results
out output -> gooutput.csv

$ vor create process go

$ vor run go

Specify the value2 in go_usernodeU.go in go/src/go_usernode directory as follows:

u.Output.Value2=input.Value*2

before

Output.Post(u.Output)

Process With Go Using Matrix Map

$ cat go_mm.strm

// Name process as go_mm
name go_mm

// read from the go.csv file
in go.csv -> input

// create a computational go node
node go_mm_usernode(input)(output)

// write out the results
out output -> gommoutput.csv

$ vor create process go_mm

$ vor run go_mm

Modify go__mm_usernodeU.go in go_mm/src/go_mm_usernode directory to use the matrix map.