Skip to content

E0109: A field reference names no field ​

Post.Title written as a value is a field reference: a typed handle on the field, used by queries and validation. The type has no field of that name, the field is ambiguous (two embedded structs have it), or it is unexported in another package.

Wrong ​

vuka
type Post struct{ Title string }

var byTitle = Post.Titel
vuka
type Post struct{ Title string }

var byTitle = Post.Title

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.