diff --git a/gosnippets/UltiSnips/go.snippets b/gosnippets/UltiSnips/go.snippets index 1a78a04d75..9a9f546d4b 100644 --- a/gosnippets/UltiSnips/go.snippets +++ b/gosnippets/UltiSnips/go.snippets @@ -252,6 +252,11 @@ snippet fn "fmt.Println(...)" fmt.Println("${1:${VISUAL}}") endsnippet +# Fmt Errorf debug +snippet fe "fmt.Errorf(...)" +fmt.Errorf("${1:${VISUAL}}") +endsnippet + # log printf snippet lf "log.Printf(...)" log.Printf("${1:${VISUAL}} = %+v\n", $1) diff --git a/gosnippets/snippets/go.snip b/gosnippets/snippets/go.snip index 40e6fe3e8c..7a22cd248f 100644 --- a/gosnippets/snippets/go.snip +++ b/gosnippets/snippets/go.snip @@ -219,6 +219,10 @@ abbr fmt.Printf(...) snippet fn abbr fmt.Println(...) fmt.Println("${1}") +# Fmt Errorf +snippet fe +abbr fmt.Errorf(...) + fmt.Errorf("${1}") # log printf snippet lf abbr log.Printf(...)