Skip to content

Commit 6cd654b

Browse files
committed
only support Go+ examples
1 parent 4ef3638 commit 6cd654b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)