mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
16 lines
678 B
Go
16 lines
678 B
Go
package model
|
|
|
|
// TypeInfo summarizes information about a struct type in the app source code.
|
|
type TypeInfo struct {
|
|
StructName string // e.g. "Application"
|
|
ImportPath string // e.g. "github.com/revel/examples/chat/app/controllers"
|
|
PackageName string // e.g. "controllers"
|
|
MethodSpecs []*MethodSpec // Method specifications, the action functions
|
|
EmbeddedTypes []*EmbeddedTypeName // Used internally to identify controllers that indirectly embed *revel.Controller.
|
|
}
|
|
|
|
// Return the type information as a properly formatted import string.
|
|
func (s *TypeInfo) String() string {
|
|
return s.ImportPath + "." + s.StructName
|
|
}
|