Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for typesMap (0.06 sec)

  1. schema/schema_test.go

    		t.Fatalf("failed to parse user, got error %v", err)
    	}
    
    	checkUserSchema(t, user)
    }
    
    func TestParseSchemaWithMap(t *testing.T) {
    	type User struct {
    		tests.User
    		Attrs map[string]string `gorm:"type:Map(String,String);"`
    	}
    
    	user, err := schema.Parse(&User{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse user with map, got error %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top