modulepackage
0.0.0-20221103234239-c2384a1c849e
Repository: https://github.com/hexasoftware/flow.git
Documentation: pkg.go.dev
# README
flow
Graph building package for go
flowserver
Collaborative session based server with an embed ui UI can be found here
Using Flow
package main
import (
"fmt"
"math/rand"
"net/http"
"strings"
"github.com/hexasoftware/flow/flowserver"
"github.com/hexasoftware/flow/registry"
)
func main() {
r := registry.New()
r.Add(strings.Split, strings.Join, toString, rand.Float64)
http.ListenAndServe(":8080", flowserver.New(r, "mystore"))
}
func toString(a interface{}) string {
return fmt.Sprintf("%v", a)
}
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
New create a new flow.
RandString from stackoverflow https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang.
# Variables
flow Errors.
flow Errors.
flow Errors.
flow Errors.
flow Errors.