June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package goflow import ( "encoding/base64" "fmt" flow "github.com/trustmaster/goflow" ) // Encoder base64 encodes all input type Encoder struct { flow.Component Val <-chan string Res chan<- string } // OnVal does the encoding then pushes the result onto Re func (e *Encoder) OnVal(val string) { encoded := base64.StdEncoding.EncodeToString([]byte(val)) e.Res <- fmt.Sprintf("%s ...Read now
Unlock full access