mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Replace interface{} with any (#25686)
				
					
				
			Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d).
			
			
This commit is contained in:
		@@ -30,18 +30,18 @@ func TestWebfinger(t *testing.T) {
 | 
			
		||||
	appURL, _ := url.Parse(setting.AppURL)
 | 
			
		||||
 | 
			
		||||
	type webfingerLink struct {
 | 
			
		||||
		Rel        string                 `json:"rel,omitempty"`
 | 
			
		||||
		Type       string                 `json:"type,omitempty"`
 | 
			
		||||
		Href       string                 `json:"href,omitempty"`
 | 
			
		||||
		Titles     map[string]string      `json:"titles,omitempty"`
 | 
			
		||||
		Properties map[string]interface{} `json:"properties,omitempty"`
 | 
			
		||||
		Rel        string            `json:"rel,omitempty"`
 | 
			
		||||
		Type       string            `json:"type,omitempty"`
 | 
			
		||||
		Href       string            `json:"href,omitempty"`
 | 
			
		||||
		Titles     map[string]string `json:"titles,omitempty"`
 | 
			
		||||
		Properties map[string]any    `json:"properties,omitempty"`
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	type webfingerJRD struct {
 | 
			
		||||
		Subject    string                 `json:"subject,omitempty"`
 | 
			
		||||
		Aliases    []string               `json:"aliases,omitempty"`
 | 
			
		||||
		Properties map[string]interface{} `json:"properties,omitempty"`
 | 
			
		||||
		Links      []*webfingerLink       `json:"links,omitempty"`
 | 
			
		||||
		Subject    string           `json:"subject,omitempty"`
 | 
			
		||||
		Aliases    []string         `json:"aliases,omitempty"`
 | 
			
		||||
		Properties map[string]any   `json:"properties,omitempty"`
 | 
			
		||||
		Links      []*webfingerLink `json:"links,omitempty"`
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	session := loginUser(t, "user1")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user