commit 2d1e44d44050356121b62b6d3ba91f9326227fc2
parent 3dce006779c07ca77e3f9d44de93c4a550f799b6
Author: lash <dev@holbrook.no>
Date: Wed, 18 Sep 2024 16:42:10 +0100
Implement Flush rename in all files
Diffstat:
6 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,7 +1,10 @@
- 0.2.0
* Remove Init from engine interface, allowing input to be passed in all parts of engine execution.
+ * Rename engine interface WriteResult to Flush.
* Enable alternate input validators if default validator fails.
* Use template as output by default on empty bytecode terminate.
+ * Extend engine execution states (execd)
+ * Automatically discard render when Exec called without Flush.
- 0.1.0
* Data storage interface (db.Db) with implementations for memory (db.memDb), filesystem (db.fsDb), gdbm (db.gdbmDb) and Postgres (db.pgDb).
* Replace resource.FsResource and resource.MemResource with resource.DbResource using corresponding db.Db backend.
diff --git a/dev/interactive/main.go b/dev/interactive/main.go
@@ -61,7 +61,7 @@ func main() {
os.Exit(1)
}
if !cont {
- _, err = en.WriteResult(ctx, os.Stdout)
+ _, err = en.Flush(ctx, os.Stdout)
if err != nil {
fmt.Fprintf(os.Stderr, "dead init write error: %v\n", err)
os.Exit(1)
diff --git a/examples/first/main.go b/examples/first/main.go
@@ -174,7 +174,7 @@ func main() {
}
}
- _, err = en.WriteResult(ctx, os.Stdout)
+ _, err = en.Flush(ctx, os.Stdout)
if err != nil {
fmt.Fprintf(os.Stderr, "engine finish fail: %v\n", err)
os.Exit(1)
diff --git a/examples/http/main.go b/examples/http/main.go
@@ -162,7 +162,7 @@ func(f *DefaultSessionHandler) ServeHTTP(w http.ResponseWriter, req *http.Reques
}
w.WriteHeader(200)
w.Header().Set("Content-Type", "text/plain")
- _, err = en.WriteResult(ctx, w)
+ _, err = en.Flush(ctx, w)
if err != nil {
f.writeError(w, 500, "Write result fail", err)
return
diff --git a/examples/longmenu/main.go b/examples/longmenu/main.go
@@ -44,7 +44,7 @@ func main() {
os.Exit(1)
}
if !cont {
- _, err = en.WriteResult(ctx, os.Stdout)
+ _, err = en.Flush(ctx, os.Stdout)
if err != nil {
fmt.Fprintf(os.Stderr, "dead init write error: %v\n", err)
os.Exit(1)
diff --git a/examples/state_passive/main.go b/examples/state_passive/main.go
@@ -126,7 +126,7 @@ func main() {
os.Exit(1)
}
if !cont {
- _, err = en.WriteResult(ctx, os.Stdout)
+ _, err = en.Flush(ctx, os.Stdout)
if err != nil {
fmt.Fprintf(os.Stderr, "dead init write error: %v\n", err)
os.Exit(1)