Last active
December 16, 2021 04:39
-
-
Save y4code/0aa698c6b74e1572383b9a93295c22b0 to your computer and use it in GitHub Desktop.
Postfix Template File of postfix-completion Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.varTopCheckError : err handle elegant way | |
ANY → var(\ | |
err error\ | |
$var:suggestVariableName()$ $type*:expressionType(expr))$\ | |
)\ | |
if $var:suggestVariableName()$, err = $expr$; err != nil {\ | |
return nil, err\ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment