di-go/definition.go

19 lines
270 B
Go
Raw Normal View History

2018-08-23 08:06:25 +00:00
package di
import (
"fmt"
"reflect"
)
type TypeDefinition struct {
FullName string
PkgName string
TypeName string
Type reflect.Type
RealType reflect.Type
}
func FullName(pkgName, typeName string) string {
return fmt.Sprintf("%s/%s", pkgName, typeName)
}