0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[GoLand] Postfix Completion

Posted at

Postix Completion

コードを自動的に補完する機能
funcの後ろに、 . (dot)と対応なキーワードを入力すれば

キーワードと補完されるコードを確認する場所
Preferences > Editor > General > Postix Completion

Postix Completion.png

rr

func の Return Value は error のみの場合が適切かと

Before
json.Unmarshal(value, &result).rr
After
if err := json.Unmarshal(nil, nil); err != nil {
	return err
}

varCheckError or vce

Before
json.Marshal(value).vce
After
marshal, err := json.Marshal(value)
if err != nil {
	return err
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?