Skip to content

Instantly share code, notes, and snippets.

@JohnIrle
Created March 16, 2024 21:24
Show Gist options
  • Save JohnIrle/a7618a0d38419da99a378f26dbb973c4 to your computer and use it in GitHub Desktop.
Save JohnIrle/a7618a0d38419da99a378f26dbb973c4 to your computer and use it in GitHub Desktop.

Revisions

  1. JohnIrle created this gist Mar 16, 2024.
    11 changes: 11 additions & 0 deletions GolandTRunTemplate.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    - Create a new live template under the Go template group
    - Give it an abbreviation. I use trun
    - Use the Go -> expression context

    - Paste this into the "Template text" box

    ```
    t.Run("$NAME$", func(t *testing.T) {
    $END$
    })
    ```