Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Atoi (0.13 sec)

  1. istioctl/pkg/writer/envoy/configdump/route.go

    		}
    	}
    	if len(routes) == 0 {
    		return nil, fmt.Errorf("no routes found")
    	}
    	sort.Slice(routes, func(i, j int) bool {
    		iName, err := strconv.Atoi(routes[i].Name)
    		if err != nil {
    			return false
    		}
    		jName, err := strconv.Atoi(routes[j].Name)
    		if err != nil {
    			return false
    		}
    		return iName < jName
    	})
    	return routes, nil
    }
    
    func isPassthrough(action any) bool {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  2. common/config/.golangci.yml

        # default is false: such cases aren't reported by default.
        check-type-assertions: false
        # report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
        # default is false: such cases aren't reported by default.
        check-blank: false
      govet:
        disable:
          # report about shadowed variables
          - shadow
      goimports:
    Others
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 19:22:39 GMT 2024
    - 11K bytes
    - Viewed (0)
  3. istioctl/pkg/precheck/precheck.go

    	if !ok {
    		return nil, fmt.Errorf("invalid version %v, expected format like '1.0'", version)
    	}
    	if major != "1" {
    		return nil, fmt.Errorf("expected major version 1, got %v", version)
    	}
    	minor, err := strconv.Atoi(minors)
    	if err != nil {
    		return nil, fmt.Errorf("minor version is not a number: %v", minors)
    	}
    
    	var messages diag.Messages = make([]diag.Message, 0)
    	if minor <= 21 {
    		// ENHANCED_RESOURCE_SCOPING
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top