Chapter 58

stub/observer

github.com/openfluke/welvet/stub/observer🚧


Why it exists

Attach forward/backward observers for debugging without coupling to tanhi UDP.

What it is

Observer interface; ConsoleObserver / HTTPObserver / BufferObserver; ComputeLayerStats.

Go example

examples/58-stub-observer/main.go

Run:cd welvet/examples/58-stub-observer && source ../env.sh && go run .
package main

import (
	"fmt"

	"github.com/openfluke/welvet/stub/observer"
)

func main() {
	var obs observer.Observer = &observer.ConsoleObserver{}
	fmt.Printf("%T\n", obs)
}

Output

Run python3 _gen_welvet_book.py --run to capture output.