ただの技術メモ

個人備忘録

init関数が呼ばれるタイミング

Effective Goにあります。 変数が初期化された後に呼ばれるようです。 go.dev init is called after all the variable declarations in the package have evaluated their initializers, and those are evaluated only after all the imported packages have…

JetBrains系エディタ(Goland)の設定やコマンド

Golandのコマンド 「⌘ + B」:宣言箇所や使用箇所へのジャンプ 「⌘ + ⇧ + F」:ファイル横断文字列検索 「⌘ + w」:タブを閉じる 「Option + Enter」:構造体のフィールドを埋める 「⌃ + ⇧ + R」:テストなどファイルの実行 「Alt + F1(Fn + 1)」:ツール…