MCPcopy
hub / github.com/swaggo/swag / SetCodeExampleFilesDirectory

Function SetCodeExampleFilesDirectory

operation.go:104–108  ·  view source on GitHub ↗

SetCodeExampleFilesDirectory sets the directory to search for codeExamples.

(directoryPath string)

Source from the content-addressed store, hash-verified

102
103// SetCodeExampleFilesDirectory sets the directory to search for codeExamples.
104func SetCodeExampleFilesDirectory(directoryPath string) func(*Operation) {
105 return func(o *Operation) {
106 o.codeExampleFilesDir = directoryPath
107 }
108}
109
110// ParseComment parses comment for given comment string and returns error if error occurs.
111func (operation *Operation) ParseComment(comment string, astFile *ast.File) error {

Callers 2

TestParseCodeSamplesFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseCodeSamplesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…