Skip to content

E0203: An attribute must start its own line ​

An attribute before a declaration (@doc, @deprecated, a typed attribute, a decorator) is written on its own line. Several attributes may share a line, but the first of them starts it, and the declaration follows on the next line.

Wrong ​

vuka
func helper() {} @doc("Lists the users")
func listUsers() []User { … }
vuka
func helper() {}

@doc("Lists the users")
func listUsers() []User { … }

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.