Skip to content

<parameter declaration> expected, got ')'  #1265

@2bitProgammer

Description

@2bitProgammer

The library that I'm working with has functions that has many parameters with long names. To make the code more readable, the parameters a put one per line (a standard practice in many languages). When doing this in Go, you need to put a comma after the last parameter if the ) isn't on the same line as the last parameter.

https://play.golang.org/p/97hdtV0Qwf

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions