Versions in this module Expand all Collapse all v0 v0.7.3 Jun 8, 2022 v0.7.2 Jun 8, 2022 Changes in this version + func ToString(err *Error) string + type Basic struct + func (*Basic) Build(_ Generator, _ *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*Basic) Matches(source, target *xtype.Type) bool + type BasicTargetPointerRule struct + func (*BasicTargetPointerRule) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*BasicTargetPointerRule) Matches(source, target *xtype.Type) bool + type Builder interface + Build func(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + Matches func(source, target *xtype.Type) bool + type Error struct + Cause string + Path []*Path + func NewError(cause string) *Error + func (e *Error) Lift(paths ...*Path) *Error + type Generator interface + Build func(ctx *MethodContext, sourceID *xtype.JenID, source, target *xtype.Type) ([]jen.Code, *xtype.JenID, *Error) + BuildExtend func(ctx *MethodContext, mapFnName string, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + type List struct + func (*List) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*List) Matches(source, target *xtype.Type) bool + type Map struct + func (*Map) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*Map) Matches(source, target *xtype.Type) bool + type MethodContext struct + ExtendMapping map[string]string + IdentityMapping map[string]struct{} + IgnoredFields map[string]struct{} + Mapping map[string]string + MatchIgnoreCase bool + PointerChange bool + Signature xtype.Signature + TargetType *xtype.Type + type Path struct + Prefix string + SourceID string + SourceType string + TargetID string + TargetType string + type Pointer struct + func (*Pointer) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*Pointer) Matches(source, target *xtype.Type) bool + type Struct struct + func (*Struct) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*Struct) Matches(source, target *xtype.Type) bool + type TargetPointer struct + func (*TargetPointer) Build(gen Generator, ctx *MethodContext, sourceID *xtype.JenID, ...) ([]jen.Code, *xtype.JenID, *Error) + func (*TargetPointer) Matches(source, target *xtype.Type) bool