INNER CODE UNIT · Go

getFlags

jinzhu/copier · copier.go:740

func getFlags(dest, src reflect.Value, toType, fromType reflect.Type, opt Option) (flags, error) {
	flgs := flags{
		BitFlags: map[string]uint8{},
		SrcNames: tagNameMapping{
			FieldNameToTag: map[string]string{},
			TagToFieldName: map[string]string{},
		},
		DestNames: tagNameMapping{
			FieldNameToTag: map[string]string{},
			TagToFieldName: map[string]string{},
		},
	}

	mustOpt := opt.Must
	noPanicOpt := opt.NoPanic

	var toTypeFields, fromTypeFields []reflect.StructField
	if dest.IsValid() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…