Skip to content

Commit

Permalink
Merge pull request #77 from xushiwei/q
Browse files Browse the repository at this point in the history
only support Go+ examples
  • Loading branch information
xushiwei authored Feb 16, 2024
2 parents 28a3f2d + 6cd654b commit 6b8bc3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ func parseExample(dir string, idx *exampleIndex) *example {
for _, fi := range fis {
fname := fi.Name()
lang := langOf(fname)
if lang != "gop" { // only support Go+ examples
continue
}
sourcePath := filepath.Join(dir, fname)
sourceSegs := parseAndRenderSegs(sourcePath)
if len(sourceSegs) != 0 { // ignore file with no segs
Expand Down

0 comments on commit 6b8bc3f

Please sign in to comment.