File tree Expand file tree Collapse file tree 4 files changed +14
-1
lines changed
Expand file tree Collapse file tree 4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ D | :x: | :x:
6363Dockerfile | :heavy_check_mark : | :heavy_check_mark :
6464Fish-Shell | :heavy_check_mark : | :heavy_check_mark :
6565Fortran | :heavy_check_mark : | :heavy_check_mark :
66- Go | :x : | :x :
66+ Go | :heavy_check_mark : | :heavy_check_mark :
6767Haskell | :heavy_check_mark : | :heavy_check_mark :
6868Java | :heavy_check_mark : | :heavy_check_mark :
6969Javascript | :heavy_check_mark : | :heavy_check_mark :
Original file line number Diff line number Diff line change 1+ function ! s: DebugStringFunBase (desc, var )
2+ let l: debug_str = " fmt.Printf(\" " . a: desc . " %+v\\ n\" , " . a: var . " )"
3+ return l: debug_str
4+ endfunc
5+
6+ command ! - buffer -nargs =0 AddDebugString
7+ \ put = s: DebugStringFunBase (g: DebugstringPrefixStr (), g: debugStringCounter )
8+ command ! - buffer -nargs =1 AddDebugStringExpr
9+ \ put = s: DebugStringFunBase (<args> . ' : ' , <args> )
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ Execute (Vim):
6262 :set filetype=vim
6363Execute (Fortran):
6464 :set filetype=fortran
65+ Execute (Go):
66+ :set filetype=go
6567Execute (Arduino):
6668 :set filetype=arduino
6769Execute (Makefile):
Original file line number Diff line number Diff line change 1+ fmt.Printf ("[[Vader-workbench]:$1$] DEBUGGING STRING ==> %+v\n " , $2 $)
2+ fmt .Printf ("a**2 + b**2: %+v\n " , a * * 2 + b * * 2 )
You can’t perform that action at this time.
0 commit comments