# turbo-go snippets. # # Each [[snippet]] becomes one line of the Snippets menu. Snippets sharing a # group appear together in a submenu of that name; one with no group goes into # General. A snippet is inserted at the cursor, and every line after the # first is indented to match the line you inserted it on. # # languages restricts a snippet to files of those kinds, by the names the # editor uses: go, toml, markdown, javascript, html, bash. Leave it out and the # snippet is offered everywhere. # # Your own snippets, shared across every project, go in: # /Users/k33g/Library/Application Support/turbo-go/snippets.toml [[snippet]] name = "if err != nil" group = "Go" languages = ["go"] body = """ if err != nil { \treturn err }""" [[snippet]] name = "table test" group = "Go" languages = ["go"] body = """ for _, test := range tests { \tt.Run(test.name, func(t *testing.T) { \t}) }""" [[snippet]] name = "strict mode" group = "Shell" languages = ["bash"] body = "set -euo pipefail" [[snippet]] name = "details block" group = "Markdown" languages = ["markdown"] body = """
""" [[snippet]] name = "TODO" body = "TODO: " [[snippet]] name = "Hello World" body = """Hello World With Bob Morane """