typiparser

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDirectories

func AllDirectories(path string, directories *[]string) (err error)

AllDirectories return all directory and sub-directory in path

Types

type DocTags

type DocTags []string

DocTags is tag in godoc

func ParseDocTag

func ParseDocTag(doc string) (tags DocTags)

ParseDocTag to parse tag from document tag

func (DocTags) Contain

func (t DocTags) Contain(tag string) bool

Contain to check is tag avaible

type ProjectContext

type ProjectContext struct {
	// Layouts contain project layout and folders
	Packages []string

	// Autowires is list of function what eligible to automatic add to DI
	Autowires []string

	// Automocks is list of file path to be generated the mock
	Automocks []string
}

ProjectContext is project context

func Parse

func Parse(appPath string) (projCtx ProjectContext, err error)

Parse the source code to get autowire and automock

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL