turbo-editors/turbo-gopublic Fork 0
v1.0.0
Commits
Clone
git clone https://git.rickub.com/turbo-editors/turbo-go.git
git clone ssh://git@rickub.com/turbo-editors/turbo-go.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

snippets.toml.tmpl · 53 lines · 1.1 KBCheetah Blame HistoryRaw
📦 Turbo Go 3d7798b k33g 11h ago1# turbo-go snippets.
2#
3# Each [[snippet]] becomes one line of the Snippets menu. Snippets sharing a
4# group appear together in a submenu of that name; one with no group goes into
5# %s. A snippet is inserted at the cursor, and every line after the
6# first is indented to match the line you inserted it on.
7#
8# languages restricts a snippet to files of those kinds, by the names the
9# editor uses: go, toml, yaml, markdown, javascript, html, xml, dockerfile,
10# bash. Leave it out and the snippet is offered everywhere.
11#
12# Your own snippets, shared across every project, go in:
13# %s
14
15[[snippet]]
16group = "Go"
17name = "main"
18languages = ["go"]
19body = """package main
20
21import "fmt"
22
23func main() {
24 fmt.Println("hello world")
25}"""
26
27[[snippet]]
28group = "Go"
29name = "switch"
30languages = ["go"]
31body = """
32 i := 1
33
34 switch i {
35 case 1:
36 fmt.Println("one")
37 case 2:
38 fmt.Println("two")
39 case 3:
40 fmt.Println("three")
41 }
42"""
43
44[[snippet]]
45group = "General"
46name = "Hello"
47body = "Hello!!!"
48
49[[snippet]]
50group = "Markdown"
51name = "Image"
52languages = ["markdown"]
53body = "![img](./pictures)"