Documentation ¶
Index ¶
- func Dump(node ast.Node)
- func Exec(cmd *cobra.Command, args ...string) (out []byte, err error)
- func ExecWithStdout(cmd *cobra.Command, args ...string) (out []byte, err error)
- func FilePath(relative string, up ...int) string
- func FilePaths(regex, relativeDirPath string) (string, []string)
- func LoadSpec(relativeFilePath string) (doc *openapi3.T)
- func LoadSpecs(regex, dirPath string) map[string]*openapi3.T
- func LoadTemplates() (*token.FileSet, map[string]*ast.File)
- func NodeString(n ast.Node) string
- func NodeWithFileSetString(n ast.Node, fset *token.FileSet) string
- func StackTrace() []string
- func StackTraceString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
Exec executes the cobra command and collects the output into a buffer for further analysis.
func ExecWithStdout ¶
ExecWithStdout writes its output to stdout/stderr as well as whatever is previously defined to be the target (like a file)
func LoadSpecs ¶
LoadSpecs looks into the directory path relative to the current go file's directory path. You may pass a regular expression to match a specific subset of files in the passed directory.
func LoadTemplates ¶
LoadTemplates loads all .go files starting with template_ or ending with _template.go from the templates folder
func NodeString ¶
func StackTrace ¶
func StackTrace() []string
func StackTraceString ¶
func StackTraceString() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.