Skip to content

E0329: Bad ui.Live embedding ​

A live view embeds ui.Live by value, not *ui.Live: the session attaches its instance to the embedded value. A route registering a live page takes its constructor, a function returning a pointer to the page's struct. Reported at boot, and by vukavet.

Wrong ​

vuka
type Counter struct {
	*ui.Live
	n int
}
vuka
type Counter struct {
	ui.Live
	n int
}

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.