Skip to content

E0201: Malformed attribute ​

An attribute is @ and a name, optionally with arguments (@doc("…"), @Route{Method: "GET"}). This one couldn't be read: no name after @, an unclosed ( or [, the wrong arguments for a built-in (@doc and @deprecated take one string, @export an identifier), or an attribute that isn't implemented.

Wrong ​

vuka
@doc(42)
func listUsers() []User { … }
vuka
@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.