mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Fix resthandler_test in Go 1.6
This commit is contained in:
		@@ -38,10 +38,12 @@ import (
 | 
				
			|||||||
type testPatchType struct {
 | 
					type testPatchType struct {
 | 
				
			||||||
	unversioned.TypeMeta `json:",inline"`
 | 
						unversioned.TypeMeta `json:",inline"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	testPatchSubType `json:",inline"`
 | 
						TestPatchSubType `json:",inline"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type testPatchSubType struct {
 | 
					// We explicitly make it public as private types doesn't
 | 
				
			||||||
 | 
					// work correctly with json inlined types.
 | 
				
			||||||
 | 
					type TestPatchSubType struct {
 | 
				
			||||||
	StringField string `json:"theField"`
 | 
						StringField string `json:"theField"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user