Skip to content

E0423: A context processor variable read without a context ​

A processor variable is read from the request being served, which a function knows through its ctx. Markup always has one. A function of a .vuka file, or a method in a shape's script, has one only when it takes ctx context.Context; this one doesn't. Reported by the compiler.

Wrong ​

vuka
func (h *Header) greeting() string {
	return "Hello, " + user.Name
}
vuka
func (h *Header) greeting(ctx context.Context) string {
	return "Hello, " + user.Name
}

See context processors.

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.