Categorygithub.com/hexasoftware/flow
repositorypackage
0.0.0-20221103234239-c2384a1c849e
Repository: https://github.com/hexasoftware/flow.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# 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)
}