MCPcopy Index your code
hub / github.com/coder/guts / IncludeGenerate

Method IncludeGenerate

convert.go:141–143  ·  view source on GitHub ↗

IncludeGenerate parses a directory and adds the parsed package to the list of packages. These package's types will be generated.

(directory string)

Source from the content-addressed store, hash-verified

139// IncludeGenerate parses a directory and adds the parsed package to the list of packages.
140// These package's types will be generated.
141func (p *GoParser) IncludeGenerate(directory string) error {
142 return p.include(directory, "", false)
143}
144
145// IncludeGenerateWithPrefix will include a prefix to all output generated types.
146func (p *GoParser) IncludeGenerateWithPrefix(directory string, prefix string) error {

Callers 5

loadTypescriptFunction · 0.80
ExampleNewGolangParserFunction · 0.80
TestGenerationFunction · 0.80
TestNotNullMapsFunction · 0.80
mainFunction · 0.80

Calls 1

includeMethod · 0.95

Tested by 4

loadTypescriptFunction · 0.64
ExampleNewGolangParserFunction · 0.64
TestGenerationFunction · 0.64
TestNotNullMapsFunction · 0.64