Documentation ¶
Index ¶
- Variables
- func GetDescription(longFnName string) (desc string)
- func GetTitle(longFnName string) string
- func IsFuncInPkg(longFnName string) bool
- func NewPackageDoc(dir string) (*doc.Package, error)
- func SetParamsType(paramsType *reflect.Type)
- func SetURLVarExtractor(fn *URLVarExtractor)
- type URLVarExtractor
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamsType *reflect.Type
Functions ¶
func GetDescription ¶
func GetTitle ¶
GetTitle extracts a title from the function name, where longFnName is of the form: github.com/adams-sarah/test2doc/example.GetWidget and the out title would be: Handle Get Widget
func IsFuncInPkg ¶
IsFuncInPkg checks if this func belongs to the package
func NewPackageDoc ¶
NewPackageDoc retrieves the go/doc package for the given dir
func SetParamsType ¶
func SetURLVarExtractor ¶
func SetURLVarExtractor(fn *URLVarExtractor)
Types ¶
type URLVarExtractor ¶
var Extractor *URLVarExtractor
Click to show internal directories.
Click to hide internal directories.