From ea0350669184adcf071db7045541ac0366032c9a Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 27 Oct 2020 13:07:57 +0000 Subject: [PATCH] feat(lang): add print related go-mode snippets --- snippets/go-mode/pdf | 3 --- snippets/go-mode/pf | 3 +++ snippets/go-mode/pl | 3 +++ snippets/go-mode/ppd | 4 ++++ snippets/go-mode/spf | 4 ++++ 5 files changed, 14 insertions(+), 3 deletions(-) delete mode 100644 snippets/go-mode/pdf create mode 100644 snippets/go-mode/pf create mode 100644 snippets/go-mode/pl create mode 100644 snippets/go-mode/ppd create mode 100644 snippets/go-mode/spf diff --git a/snippets/go-mode/pdf b/snippets/go-mode/pdf deleted file mode 100644 index 36ed795..0000000 --- a/snippets/go-mode/pdf +++ /dev/null @@ -1,3 +0,0 @@ -# key: pdf -# -- -fmt.Printf($0) \ No newline at end of file diff --git a/snippets/go-mode/pf b/snippets/go-mode/pf new file mode 100644 index 0000000..135ac4b --- /dev/null +++ b/snippets/go-mode/pf @@ -0,0 +1,3 @@ +# key: pf +# -- +fmt.Printf(${1:format string}, ${2:a ...interface{\}})$0 \ No newline at end of file diff --git a/snippets/go-mode/pl b/snippets/go-mode/pl new file mode 100644 index 0000000..87fd7f6 --- /dev/null +++ b/snippets/go-mode/pl @@ -0,0 +1,3 @@ +# key: pl +# -- +fmt.Println($0) \ No newline at end of file diff --git a/snippets/go-mode/ppd b/snippets/go-mode/ppd new file mode 100644 index 0000000..d2d53c2 --- /dev/null +++ b/snippets/go-mode/ppd @@ -0,0 +1,4 @@ +# name: fmt.Printf("...: %+v\n", ...) +# key: ppd +# -- +fmt.Printf("$1: %+v\n", $1)$0 \ No newline at end of file diff --git a/snippets/go-mode/spf b/snippets/go-mode/spf new file mode 100644 index 0000000..43e823a --- /dev/null +++ b/snippets/go-mode/spf @@ -0,0 +1,4 @@ +# name: fmt.Sprintf(format string, a ...interface{}) +# key: spf +# -- +fmt.Sprintf(${1:format string}, ${2:a ...interface{\}})$0 \ No newline at end of file