Added snippets for Emacs

This commit is contained in:
Fabio Scotto di Santolo
2025-12-27 13:53:55 +01:00
parent 2d510d289c
commit db4f52a064
115 changed files with 814 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
func main() {
$0
}

View File

@@ -0,0 +1 @@
fmt.Printf("%v\n", $0)

View File

@@ -0,0 +1,23 @@
func Test$0 {
tests := []struct {
name string
req string
expected string
}{
{
name: "happy path",
req: "answer to life, the universe and everything"
expected: "42"
}
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
actual := foo(t, tt.req)
assertEquals(t, tt.want, expected)
})
}
}