Skip to content

E0205: Bad parameter attribute ​

A parameter attribute is a value (a typed attribute such as @Path("id") or @Body), written before the parameter, in a top-level function. Declaration attributes (@doc) and decorators (functions) don't go on parameters.

Wrong ​

vuka
func show(id @Path("id") int) {}

func list(@logged n int) {}
vuka
func show(@Path("id") id int) {}

@logged
func list(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.