feat(lang): add print related go-mode snippets

This commit is contained in:
2020-10-27 13:07:57 +00:00
parent 60df63bc49
commit ea03506691
5 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
# key: pdf
# --
fmt.Printf($0)

3
snippets/go-mode/pf Normal file
View File

@@ -0,0 +1,3 @@
# key: pf
# --
fmt.Printf(${1:format string}, ${2:a ...interface{\}})$0

3
snippets/go-mode/pl Normal file
View File

@@ -0,0 +1,3 @@
# key: pl
# --
fmt.Println($0)

4
snippets/go-mode/ppd Normal file
View File

@@ -0,0 +1,4 @@
# name: fmt.Printf("...: %+v\n", ...)
# key: ppd
# --
fmt.Printf("$1: %+v\n", $1)$0

4
snippets/go-mode/spf Normal file
View File

@@ -0,0 +1,4 @@
# name: fmt.Sprintf(format string, a ...interface{})
# key: spf
# --
fmt.Sprintf(${1:format string}, ${2:a ...interface{\}})$0