MCPcopy
hub / github.com/gobyexample-cn/gobyexample / whichLexer

Function whichLexer

tools/generate.go:83–90  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

81}
82
83func whichLexer(path string) string {
84 if strings.HasSuffix(path, ".go") {
85 return "go"
86 } else if strings.HasSuffix(path, ".sh") {
87 return "console"
88 }
89 panic("No lexer for " + path)
90}
91
92func debug(msg string) {
93 if os.Getenv("DEBUG") == "1" {

Callers 1

parseAndRenderSegsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected