Created
February 7, 2014 05:32
-
-
Save yudai/8857785 to your computer and use it in GitHub Desktop.
which do you like?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #1 | |
| obj.method0( | |
| arg1, | |
| arg2) | |
| .method1 | |
| .method2 | |
| #2 | |
| obj.method0( | |
| arg1, | |
| arg2).method1 | |
| .method2 | |
| #3 | |
| obj.method0( | |
| arg1, | |
| arg2 | |
| ) | |
| .method1 | |
| .method2 | |
| #4 | |
| obj.method0( | |
| arg1, | |
| arg2 | |
| ).method1 | |
| .method2 |
この中なら、#4で
gofmtだと,行を長いまま放置しない場合は,
obj.method0(
longlonglonglonglognlonglonglonglongarg1,
longlonglonglonglognlonglonglonglongarg2,
).
longlonglonglonglognlonglonglonglongmethod1.
longlonglonglonglognlonglonglonglongmethod2
が基本みたいです。
().longlonglonglonglognlonglonglonglongmethod1.とかは許されると思いますが)
ちなみに()内の2行目の最後の,は必須です。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
どれかを、選択しなければいけないなら、#1かなぁ
でも、
は、意図がはっきりしていていいかも