Skip to content

Commit 62b7c33

Browse files
philippgillejosharian
authored andcommitted
Add TODO comment to "not implemented" panic line
TODO comments can be highlighted by IDEs (some native, some with extensions) or even collected into a task list by some. So adding this line by default to each "not implemented" panic line can help keeping an overview of the functions that still need to be implemented.
1 parent f0d59e9 commit 62b7c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ const stub = "{{if .Comments}}{{.Comments}}{{end}}" +
293293
"func ({{.Recv}}) {{.Name}}" +
294294
"({{range .Params}}{{.Name}} {{.Type}}, {{end}})" +
295295
"({{range .Res}}{{.Name}} {{.Type}}, {{end}})" +
296-
"{\n" + "panic(\"not implemented\")" + "}\n\n"
296+
"{\n" + "panic(\"not implemented\") // TODO: Implement" + "}\n\n"
297297

298298
var tmpl = template.Must(template.New("test").Parse(stub))
299299

0 commit comments

Comments
 (0)