di-go/definition.go
2018-08-23 17:06:25 +09:00

19 lines
270 B
Go

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)
}