github.com/mlmmr/revel-cmd@v0.21.2-0.20191112133115-68d8795776dd/model/type_info.go (about) 1 package model 2 3 // TypeInfo summarizes information about a struct type in the app source code. 4 type TypeInfo struct { 5 StructName string // e.g. "Application" 6 ImportPath string // e.g. "github.com/revel/examples/chat/app/controllers" 7 PackageName string // e.g. "controllers" 8 MethodSpecs []*MethodSpec // Method specifications, the action functions 9 EmbeddedTypes []*EmbeddedTypeName // Used internally to identify controllers that indirectly embed *revel.Controller. 10 } 11 12 // Return the type information as a properly formatted import string 13 func (s *TypeInfo) String() string { 14 return s.ImportPath + "." + s.StructName 15 }