Golangで、レシーバーの名前を
go
1(this *Teratail)
や
go
1(self *Teratail)
にすると、エディターやIDEによっては
receiver name should be a reflection of its identity; don't use generic names such as "this" or "self"
的な注意をされますよね。
でも、よくあるサンプルのように
go
1(t *Teratail)
とすると、thisやselfに対して読みにくくなると思います。
みなさんは、レシーバー名、どのように命名していますか??
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。