Skip to content

Commit 6b8bc3f

Browse files
authored
Merge pull request #77 from xushiwei/q
only support Go+ examples
2 parents 28a3f2d + 6cd654b commit 6b8bc3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ func parseExample(dir string, idx *exampleIndex) *example {
304304
for _, fi := range fis {
305305
fname := fi.Name()
306306
lang := langOf(fname)
307+
if lang != "gop" { // only support Go+ examples
308+
continue
309+
}
307310
sourcePath := filepath.Join(dir, fname)
308311
sourceSegs := parseAndRenderSegs(sourcePath)
309312
if len(sourceSegs) != 0 { // ignore file with no segs

0 commit comments

Comments
 (0)