goflow icon indicating copy to clipboard operation
goflow copied to clipboard

Example program needs to be updated

Open udayvnayak opened this issue 2 years ago • 1 comments

When I try to run the sample program provided, it gives the following errors ./main.go:17:14: cannot use doSomething (type func([]byte, map[string][]string) ([]byte, error)) as type flow.BranchOption in argument to dag.Node

I tried to execute this on "The Go Playground", but it doesn't execute there.

We would like to explore goflow for one of the requirement. Could you please help here

udayvnayak avatar Oct 05 '21 11:10 udayvnayak

Any updates on this? I am not able to use your goflow package. Also the redis package expects "context" as the first argument. So getting compilation errors as follows ../github.com/s8sg/goflow/core/redis-datastore/redis.go:88:21: not enough arguments in call to client.Scan have (number, string, number) want (context.Context, uint64, string, int64)

udayvnayak avatar Oct 12 '21 10:10 udayvnayak

can you tell me about how to solve this problem

cofroute avatar Nov 11 '22 07:11 cofroute

When I try to run the sample program provided, it gives the following errors ./main.go:17:14: cannot use doSomething (type func([]byte, map[string][]string) ([]byte, error)) as type flow.BranchOption in argument to dag.Node

I tried to execute this on "The Go Playground", but it doesn't execute there.

We would like to explore goflow for one of the requirement. Could you please help here

can you tell me about how to solve this problem

cofroute avatar Nov 11 '22 07:11 cofroute

This can be solved by updating go flow library

go get github.com/s8sg/goflow@master

s8sg avatar Apr 09 '23 03:04 s8sg