In Go, how to write a multi-line statement?

Sure it is, just put an operator at the end, for example:

a = b + c + s +
    x + y

Also note that it’s not possible to break the line before the operator. The following code is invalid:

a = b + c + s
    + x + y

The rule is described here and in the specification.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)