Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sortedMethodNames (0.15 sec)

  1. src/cmd/api/main_test.go

    		}
    		if w.scope[len(w.scope)-1] != name {
    			log.Fatalf("attempt to leave scope %q, but scope is currently %#v", name, w.scope)
    		}
    		w.scope = w.scope[:len(w.scope)-1]
    	}
    }
    
    func sortedMethodNames(typ *types.Interface) []string {
    	n := typ.NumMethods()
    	list := make([]string, n)
    	for i := range list {
    		list[i] = typ.Method(i).Name()
    	}
    	sort.Strings(list)
    	return list
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top